Skip to end of metadata
Go to start of metadata

Description

Sets the value of the specified property.

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

Parameters

propertyName
A String representing the name of the property to set.
propertyValue
An Object that represents the value of the property specified.

Remarks

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

Examples

C#

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

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