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


IXmlPropertySet.IsNew Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

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(
  VARIANT_BOOL* IsNew
);
[C++]

Parameters IsNew [out, retval] IsNew is a parameter of type VARIANT_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