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

 public System.Object GetCustomProperty(System.String key)
Public Function GetCustomProperty(ByVal key As String) As Object

The name of the property to retrieve.

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

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


          //--- Return "Priority" Custom Property
          string priority = docProps.GetCustomProperty("Priority");
        

          '--- Return "Priority" Custom Property
          Dim priority As String = docProps.GetCustomProperty("Priority")