Skip to end of metadata
Go to start of metadata

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
A String that represents name of the property to set.
value
An Object that represents the value of the custom property specified.

Remarks

MS Word equivalent: File menu > Properties > Custom tab

Examples

C#

          //--- Set "Priority" Custom Property
          docProps.SetCustomProperty("Priority", "High");
        
vb.net

          '--- Set "Priority" Custom Property
          docProps.SetCustomProperty("Priority", "High")
        
  • No labels