Add or replace an attribute in a Variable Attribute set.
Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function setAttr( _ ByVal name As String, _ ByVal val As String _ ) As Integer |
C# |
---|
public int setAttr( string name, string val ) |
C++ |
---|
public: int setAttr( String name, String val ) sealed |
J# |
---|
public int setAttr( string name, string val ) |
JScript |
---|
public
function setAttr( name : String, val : String ) : int |
Parameters
- name
- the attribute name
- val
- the attribute value
Return Value
1 if attribute was added, 0 if attribute was replaced
Exceptions
Exception Type | Condition |
---|---|
ArgumentException | if name is invalid or val is null. |
Remarks
This adds a new attribute if "name" is not already in this set, or replaces an existing attribute if it is.