SerializationMessage.AddProperty Method
Add additional properties to the message.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Déclaration
Public Sub AddProperty ( _
propertyName As String, _
propertyValue As Object _
)
public void AddProperty(
string propertyName,
Object propertyValue
)
public:
void AddProperty(
String^ propertyName,
Object^ propertyValue
)
member AddProperty :
propertyName:string *
propertyValue:Object -> unit
public function AddProperty(
propertyName : String,
propertyValue : Object
)
Parameters
- propertyName
Type: System.String
Name of the property to add. It is used as the key to store and retrieve the value, so must be non-empty.
- propertyValue
Type: System.Object
Value of the property to add. Can be any value, including null.
Remarks
The given property name is used as the key to store and retrieve the property value. It is compared by ordinal, and if it collapse with an existing property name, the new value will replace the existing value (no error will be given in this case).
.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.