Skip to end of metadata
Go to start of metadata

Description

Returns an Object that represents the value of the property specified.

C#
 public System.Object GetProperty(System.String propertyName)
vb.net
Public Function GetProperty(ByVal propertyName As String) As Object

Parameters

propertyName
A String representing the name of the property to retrieve.

Returns

An Object that represents the value of the property specified.

Remarks

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

Examples

C#

          //--- Return "Priority" Property
          string priority = docProps.GetProperty("Priority");
        
vb.net

          '--- Return "Priority" Property
          Dim priority As String = docProps.GetProperty("Priority")
        
  • No labels