Method BuildExtensionField
BuildExtensionField(String)
Builds an extension field string from a given extension key and the default query field. The default field and the key are delimited with the extension field delimiter character. This method makes no assumption about the order of the extension key and the field. By default the extension key is appended to the end of the returned string while the field is added to the beginning. Special Query characters are escaped in the result.
Note: Extensions subclasses must maintain the contract between BuildExtensionField(String) and BuildExtensionField(String, String) where the latter inverts the former.
Declaration
public virtual string BuildExtensionField(string extensionKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | extensionKey | the extension key |
Returns
Type | Description |
---|---|
System.String | escaped extension field identifier |
BuildExtensionField(String, String)
Builds an extension field string from a given extension key and the default query field. The default field and the key are delimited with the extension field delimiter character. This method makes no assumption about the order of the extension key and the field. By default the extension key is appended to the end of the returned string while the field is added to the beginning. Special Query characters are escaped in the result.
Note: Extensions subclasses must maintain the contract between BuildExtensionField(String) and BuildExtensionField(String, String) where the latter inverts the former.
Declaration
public virtual string BuildExtensionField(string extensionKey, string field)
Parameters
Type | Name | Description |
---|---|---|
System.String | extensionKey | the extension key |
System.String | field | the field to apply the extension on. |
Returns
Type | Description |
---|---|
System.String | escaped extension field identifier |
Remarks
See BuildExtensionField(String) to use the default query field