ArcGIS Developer Help  (GeoDatabase)    

IMetadata.Metadata Property

The PropertySet containing metadata.

[Visual Basic 6.0]
Property Metadata As IPropertySet
[Visual Basic .NET]
Public Property Metadata As IPropertySet
[C#]
public IPropertySet Metadata {get; set;}
[Java]
public IPropertySet getMetadata()
throws
    IOException,
    AutomationException
[Java]
public void setMetadata(
IPropertySet pPropertySet
)
throws
    IOException,
    AutomationException
[C++]
HRESULT get_Metadata(
  IPropertySet** ppPropertySet
);
[C++]
HRESULT put_Metadata(
  IPropertySet* ppPropertySet

);

[C++]

Parameters

ppPropertySet [out, retval]

  ppPropertySet is a parameter of type IPropertySet

ppPropertySet [in]

  ppPropertySet is a parameter of type IPropertySet

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The variable to hold the data must be of IPropertySet data type.

The metadata property is frequently used to save, or update, changes to metadata documents that have taken place through methods available on the IPropertySet, IXmlPropertySet, and/or  IXmlPropertySet2 interfaces.

[Visual Basic 6.0]
    Dim pMD As IMetadata
    Dim pPS As IPropertySet
    Dim pXPS As IXmlPropertySet
    
    Set pMD = pGxObj
    Set pPS = pMD.metadata
    Set pXPS = pPS

    pXPS.deleteProperty "idinfo/citation/citeinfo/title"
    'Changes are saved
    pMD.metadata = pPS 

See Also

IMetadata Interface

Example

IMetadata Metadata Example

 


Feedback Send feedback on this page