Description
Sets the specified custom property with a certain value.
C#
public void SetCustomProperty(System.String key, System.Object value)
vb.net
Public Sub SetCustomProperty(ByVal key As String, ByVal value As Object)
Parameters
key
AString that represents name of the property to set.
value
AnObject that represents the value of the custom property specified.
Remarks
MS Word equivalent: File menu > Properties > Custom tabExamples
C#
//--- Set "Priority" Custom Property
docProps.SetCustomProperty("Priority", "High");
vb.net
'--- Set "Priority" Custom Property
docProps.SetCustomProperty("Priority", "High")
