Share via


MetaProperty.GetItemByInternalName Method

Office Developer Reference

Gets a property's value specifying its name as opposed to its index value.

Syntax

expression.GetItemByInternalName(InternalName)

expression   An expression that returns a MetaProperty object.

Parameters

Name Required/Optional Data Type Description
InternalName Required String Contains the name of the property.

Return Value
MetaProperty

Remarks
Metadata is information about a document that can be used to identify particular documents, search document content, build rich content dynamically, and other similar operations without the need to open the document. Metadata can be stored in a document and as properties in a Windows SharePoint Services server.

Example

In the following example, a MetaProperties object is passed to a validation function. The function then retrieves the value of one of its properties and assigns it to a MetaProperty object. Finally, the property is validated and the results are returned.

Visual Basic for Applications
  Function ValidateMetaProperty(ByVal objMetaProperty As MetaProperty) As String
Dim objMetaProperty As MetaProperty
Dim result As String

objMetaProperty = objMetaProperty.GetItemByInternalName("type") result = objMetaProperty.Validate

ValidateMetaProperty = result End Function

See Also