Retrieve the value of a named attribute.
Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)
Syntax
| Visual Basic (Declaration) |
|---|
| Public Function getAttr( _ ByVal name As String _ ) As String |
| C# |
|---|
| public string getAttr( string name ) |
| C++ |
|---|
| public: String getAttr( String name ) sealed |
| J# |
|---|
| public string getAttr( string name ) |
| JScript |
|---|
| public
function getAttr( name : String ) : String |
Parameters
- name
- the name of the attribute to be retrieved.
Return Value
the value of the named attribute, null if no such attribute.
Exceptions
| Exception Type | Condition |
|---|---|
| ArgumentException | if name is null |
Remarks
This retrieves the value of an attribute from the Variable Attributes set. If the set has no such value null is returned.