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(System.String propertyName)
Signature
{signature}{signature:vb.net
vb.net
}
Public Function GetProperty(ByVal propertyName As String) As Object
Parameters

...

A String representing the name of the property to retrieve.

Returns

An Object that represents the value of the property specified.

Remarks

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

{signature}
{parameters}
{param:propertyName}A {{String}} representing the name of the property to retrieve.{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 "Priority" Property
          string priority = docProps.GetProperty("Priority");
        
{code}
{code:vb.net
|title=vb.net
}

          '--- Return "Priority" Property
          Dim priority As String = docProps.GetProperty("Priority")
        {code}

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