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(BuiltInProperty property)
vb.net
Public Function GetProperty(ByVal [property] As BuiltInProperty) As Object

Parameters

property
A BuiltInProperty object that represents the built-in property to set.

Returns

An Object that represents the value of the property specified.

Remarks

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

Examples

C#

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

          '--- Return "Author" Property
          Dim priority As String = _
               docProps.GetProperty(DocumentProperties.BuiltInProperty.Author)
        
  • No labels