Description
Returns an Object that represents the value of the custom property specified.
C#
public System.Object GetCustomProperty(System.String key)
vb.net
Public Function GetCustomProperty(ByVal key As String) As Object
Parameters
key
The name of the property to retrieve.Returns
AnObject that represents the value of the custom property specified.
Remarks
MS Word equivalent: File menu > Properties > Custom tab > Properties:Examples
C#
//--- Return "Priority" Custom Property
string priority = docProps.GetCustomProperty("Priority");
vb.net
'--- Return "Priority" Custom Property
Dim priority As String = docProps.GetCustomProperty("Priority")
