Sets the value of the specified property.

 public void SetProperty(System.String propertyName, System.Object propertyValue)
Public Sub SetProperty(ByVal propertyName As String, ByVal propertyValue As Object)

A String representing the name of the property to set.

An Object that represents the value of the property specified.

MS Word equivalent: File menu > Properties > Custom tab > Properties:


          //--- Set "Priority" Property
          docProps.SetProperty("Priority", "high");
        

          '--- Set "Priority" Property
          docProps.SetProperty("Priority", "high")