This document is archived and information here might be outdated.  Recommended version.


IXmlPropertySet.IsNew Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IX > IXmlPropertySet Interface > IXmlPropertySet.IsNew Property
ArcGIS Developer Help

IXmlPropertySet.IsNew Property

Indicates if a new XmlPropertySet was created on retrieving the metadata.

[Visual Basic .NET]
Public ReadOnly Property IsNew As Boolean
[C#]
public bool IsNew {get;}
[C++]
HRESULT get_IsNew(
  Boolean* IsNew
);
[C++]
Parameters
IsNew [out, retval]

IsNew is a parameter of type bool*

Product Availability

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

Remarks

The IsNew Boolean property reflects the initial state of the XML metadata document when accessed. If no metadata document exists when accessed, a new metadata document is created containing the ESRI defined tags (these are used by ArcCatalog to maintain the metadata document) "ESRI, MetaID, CreaDate, CreaTime, SyncOnce", and the Boolean attribute IsNew is set to "True".  If an XML metadata file exists when initially accessed, the Boolean property is False.

Even if the options to automatically create metadata (available though the user interface from the Tools Menu > Option Command > Metadata Tab) have been unchecked, metadata is still created when accessed programmatically.

 

See Also

IXmlPropertySet Interface