Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

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
Parameters

...

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:

{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}
{code:vb.net
|title=vb.net
}

          '--- Return "Author" Property
          Dim priority As String = _
               docProps.GetProperty(DocumentProperties.BuiltInProperty.Author)
        {code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle