Click or drag to resize

StringExtensionsTagGet Method

Returns the value of the specified item. If no such item is found an empty string is returned. In the tag string name and value are separated by an equals sign ("=") and name/value pairs are separated by ampersands. Internally each value is UriEncoded to allow for values having ampersands or equals sign. The UriDecoding is performed by this method. Use TagSet(String, String, String) to set a value by name.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static string TagGet(
	this string s,
	string name
)

Parameters

s
Type: SystemString
The original tag string.
name
Type: SystemString
The name of the item to retrieve.

Return Value

Type: String
The value of the specified item or an empty string if not found.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also