Excerpt |
---|
Returns an Object that represents the value of the custom property specified. |
Signature |
---|
C# | C# | Wiki Markup |
---|
{description}
{excerpt}Returns an {{Object}} that represents the value of the custom property specified.{excerpt}
{signature:C#}
public System.Object GetCustomProperty(System.String key)
|
Signature |
---|
{signature}{signature:vb.net | vb.net | }
Public Function GetCustomProperty(ByVal key As String) As Object
|
...
The name of the property to retrieve.
Returns |
---|
An Object that represents the value of the custom property specified. |
Remarks |
---|
MS Word equivalent: File menu > Properties > Custom tab > Properties: |
Example |
---|
Code Block |
---|
| csharp | csharp |
title | C# |
---|
{signature}
{parameters}
{param:key}The name of the property to retrieve.{param}
{returns}An {{Object}} that represents the value of the custom property specified.{returns}
{remarks}MS Word equivalent: File menu > Properties > Custom tab > Properties:
{remarks}
{example}{code:csharp|title=C#}
//--- Return "Priority" Custom Property
string priority = docProps.GetCustomProperty("Priority");
Code Block |
---|
{code}
{code:vb.net
vb.net | title | |title=vb.net
}
'--- Return "Priority" Custom Property
Dim priority As String = docProps.GetCustomProperty("Priority")
{code}
{example}