Class ThreatListUpdateConstraintsBuilder
Threat List Update Constraints Builder.
Inheritance
Inherited Members
Namespace: Gee.External.Browsing.Clients
Assembly: Gee.External.Browsing.dll
Syntax
public sealed class ThreatListUpdateConstraintsBuilder
Methods
Build()
Build a Threat List Update Constraints.
Declaration
public ThreatListUpdateConstraints Build()
Returns
Type | Description |
---|---|
ThreatListUpdateConstraints |
SetClientLocation(String)
Set Client Location.
Declaration
public ThreatListUpdateConstraintsBuilder SetClientLocation(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The geographic location, formatted as an ISO 31166-1 alpha-2 region code, of a client. An invalid geographic location is ignored by the Google Safe Browsing API. A null reference indicates the geographic location of the client is unknown. |
Returns
Type | Description |
---|---|
ThreatListUpdateConstraintsBuilder | This threat list update constraints builder. |
SetMaximumDatabaseEntries(Int32)
Set Maximum Database Entries.
Declaration
public ThreatListUpdateConstraintsBuilder SetMaximumDatabaseEntries(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | The maximum number of threats associated with a ThreatList a client is willing, or is
capable, of storing in its local IManagedBrowsingDatabase. A |
Returns
Type | Description |
---|---|
ThreatListUpdateConstraintsBuilder | This threat list update constraints builder. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | Thrown if |
SetMaximumResponseEntries(Int32)
Set Maximum Response Entries.
Declaration
public ThreatListUpdateConstraintsBuilder SetMaximumResponseEntries(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | The maximum number of threats associated with a ThreatList that will be retrieved in a
single request. A |
Returns
Type | Description |
---|---|
ThreatListUpdateConstraintsBuilder | This threat list update constraints builder. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | Thrown if |
SetThreatListLanguage(String)
Set Threat List Language.
Declaration
public ThreatListUpdateConstraintsBuilder SetThreatListLanguage(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The language, formatted as an ISO 639 alpha-2 language code, a ThreatList should be retrieved for. An invalid language is ignored by the Google Safe Browsing API. A null reference indicates a language should not be considered. |
Returns
Type | Description |
---|---|
ThreatListUpdateConstraintsBuilder | This threat list update constraints builder. |
SetThreatListLocation(String)
Set Threat List Location.
Declaration
public ThreatListUpdateConstraintsBuilder SetThreatListLocation(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The geographic location, formatted as an ISO 31166-1 alpha-2 region code, a ThreatList should be retrieved for. An invalid geographic location is ignored by the Google Safe Browsing API. A null reference indicates a geographic location should not be considered. |
Returns
Type | Description |
---|---|
ThreatListUpdateConstraintsBuilder | This threat list update constraints builder. |