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:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code
See Also
PropertyDataCollection Class | PropertyDataCollection Members | System.Management Namespace | PropertyDataCollection.Add Overload List