Show / Hide Table of Contents

Class ThreatListUpdateConstraintsBuilder

Threat List Update Constraints Builder.

Inheritance
System.Object
ThreatListUpdateConstraintsBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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

A 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 0 indicates there is no limit to the number of threats the client is willing to store.

Returns
Type Description
ThreatListUpdateConstraintsBuilder

This threat list update constraints builder.

Exceptions
Type Condition
System.ArgumentOutOfRangeException

Thrown if value is less than 0.

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 0 indicates there is no limit to the number of threats that will be retrieved.

Returns
Type Description
ThreatListUpdateConstraintsBuilder

This threat list update constraints builder.

Exceptions
Type Condition
System.ArgumentOutOfRangeException

Thrown if value is less than 0.

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.

Back to top Generated by DocFX