Excerpt |
---|
Returns an Object that represents the value of the property specified. |
Signature |
---|
C# | C# | Wiki Markup |
---|
{description}
{excerpt}Returns an {{Object}} that represents the value of the property specified.{excerpt}
{signature:C#}
public System.Object GetProperty(BuiltInProperty property)
|
Signature |
---|
{signature}{signature:vb.net | vb.net | }
Public Function GetProperty(ByVal [property] As BuiltInProperty) As Object
|
...
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: |
Example |
---|
Code Block |
---|
| csharp | csharp |
title | C# |
---|
{signature}
{parameters}
{param:property}A [BuiltInProperty|DocumentProperties.BuiltInProperty] object that represents the built\-in property to set.{param}
{returns}An {{Object}} that represents the value of the property specified.{returns}
{remarks}MS Word equivalent: File menu > Properties > Custom tab > Properties:
{remarks}
{example}{code:csharp|title=C#}
//--- Return "Author" Property
string priority =
(string)docProps.GetProperty(DocumentProperties.BuiltInProperty.Author);
Code Block |
---|
{code}
{code:vb.net
vb.net | title | |title=vb.net
}
'--- Return "Author" Property
Dim priority As String = _
docProps.GetProperty(DocumentProperties.BuiltInProperty.Author)
{code}
{example}