Create a set of variable attributes from a list of names and values.
Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)
Syntax
| Visual Basic (Declaration) |
|---|
| Public Sub New( _ ByVal attr_names As String(), _ ByVal attr_values As String() _ ) |
| C# |
|---|
| public NetricsVarAttr( string[] attr_names, string[] attr_values ) |
| C++ |
|---|
| public: NetricsVarAttr( array<String>^ attr_names, array<String>^ attr_values ) sealed |
| J# |
|---|
| public NetricsVarAttr( string[] attr_names, string[] attr_values ) |
| JScript |
|---|
| public function NetricsVarAttr( attr_names : String[], attr_values : String[] ) |
Parameters
- attr_names
- an array of the names of the attributes.
- attr_values
- an array of the values for the attributes.
Remarks
This constructor creates a new set of Variable Attributes and populates it from a list of attribute names and attributes values.
The following validations are performed:
- length of attr_names != length of attr_values
- any attr_names or attr_values is null
- any attr_names length is < 1 or > 2048
- any attr_names contains invalid characters.