Sets the specified custom property with a certain value.

 public void SetCustomProperty(System.String key, System.Object value)
Public Sub SetCustomProperty(ByVal key As String, ByVal value As Object)

A String that represents name of the property to set.

An Object that represents the value of the custom property specified.

MS Word equivalent: File menu > Properties > Custom tab


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

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