This topic has not yet been rated - Rate this topic

PropertyDataCollection.Add Method (String, Object, CimType)

.NET Framework 1.1

Adds a new PropertyData with the specified value and CIM type.

[Visual Basic]
Overloads Public Sub Add( _
   ByVal propertyName As String, _
   ByVal propertyValue As Object, _
   ByVal propertyType As CimType _
)
[C#]
public void Add(
 string propertyName,
 object propertyValue,
 CimType propertyType
);
[C++]
public: void Add(
 String* propertyName,
 Object* propertyValue,
 CimType propertyType
);
[JScript]
public function Add(
   propertyName : String,
 propertyValue : Object,
 propertyType : CimType
);

Parameters

propertyName
The name of the property.
propertyValue
The value of the property (which can be null).
propertyType
The CIM type of the property.

Remarks

Properties can only be added to class definitions, not to instances. This method is only valid when invoked on a PropertyDataCollection in a ManagementClass.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

PropertyDataCollection Class | PropertyDataCollection Members | System.Management Namespace | PropertyDataCollection.Add Overload List

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.