Class ThreatListUpdateQueryBuilder
Threat List Update Query Builder.
Inheritance
Inherited Members
Namespace: Gee.External.Browsing.Clients
Assembly: Gee.External.Browsing.dll
Syntax
public sealed class ThreatListUpdateQueryBuilder
Methods
Build()
Build a Threat List Update Query.
Declaration
public ThreatListUpdateQuery Build()
Returns
| Type | Description |
|---|---|
| ThreatListUpdateQuery |
SetThreatListDescriptor(ThreatListDescriptor)
Set Threat List Descriptor.
Declaration
public ThreatListUpdateQueryBuilder SetThreatListDescriptor(ThreatListDescriptor value)
Parameters
| Type | Name | Description |
|---|---|---|
| ThreatListDescriptor | value | A ThreatListDescriptor identifying the ThreatList to retrieve. |
Returns
| Type | Description |
|---|---|
| ThreatListUpdateQueryBuilder | This threat list update query builder. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if |
SetThreatListDescriptor(ThreatType, PlatformType, ThreatEntryType)
Set Threat List Descriptor.
Declaration
public ThreatListUpdateQueryBuilder SetThreatListDescriptor(ThreatType threatType, PlatformType platformType, ThreatEntryType threatEntryType)
Parameters
| Type | Name | Description |
|---|---|---|
| ThreatType | threatType | A ThreatType identifying the ThreatList to retrieve. |
| PlatformType | platformType | A PlatformType identifying the ThreatList to retrieve. |
| ThreatEntryType | threatEntryType | A ThreatEntryType identifying the ThreatList to retrieve. |
Returns
| Type | Description |
|---|---|
| ThreatListUpdateQueryBuilder | This threat list update query builder. |
SetThreatListState(String)
Set Threat List State.
Declaration
public ThreatListUpdateQueryBuilder SetThreatListState(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | The state, formatted as a hexadecimal encoded string, of the ThreatList to retrieve. This should be the value returned by the Google Safe Browsing API when the threat list was most recently retrieved. An invalid state will be ignored by the Google Safe Browsing API and will force the threat list to be retrieved as a Full update. A null reference indicates the state of the threat list is unknown and will force the threat list to be retrieved as a Full update. |
Returns
| Type | Description |
|---|---|
| ThreatListUpdateQueryBuilder | This threat list update query builder. |
Exceptions
| Type | Condition |
|---|---|
| System.FormatException | Thrown if |
SetUpdateConstraints(ThreatListUpdateConstraints)
Set Update Constraints.
Declaration
public ThreatListUpdateQueryBuilder SetUpdateConstraints(ThreatListUpdateConstraints value)
Parameters
| Type | Name | Description |
|---|---|---|
| ThreatListUpdateConstraints | value | The ThreatListUpdateConstraints to apply when the ThreatList is retrieved. A null reference indicates no update constraints should be applied. |
Returns
| Type | Description |
|---|---|
| ThreatListUpdateQueryBuilder | This threat list update query builder. |
SetUpdateConstraints(Func<ThreatListUpdateConstraintsBuilder, ThreatListUpdateConstraints>)
Set Update Constraints.
Declaration
public ThreatListUpdateQueryBuilder SetUpdateConstraints(Func<ThreatListUpdateConstraintsBuilder, ThreatListUpdateConstraints> valueAction)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Func<ThreatListUpdateConstraintsBuilder, ThreatListUpdateConstraints> | valueAction | An action to create the ThreatListUpdateConstraints to apply when the ThreatList is retrieved. |
Returns
| Type | Description |
|---|---|
| ThreatListUpdateQueryBuilder | This threat list update query builder. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if |