MetaProperties.GetItemByInternalName method (Office)

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

Syntax

expression.GetItemByInternalName(InternalName)

expression An expression that returns a MetaProperties 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 on a Microsoft SharePoint Foundation 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.

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

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.