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


IGxObjectFilter.CanSaveObject Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Catalog > ESRI.ArcGIS.Catalog > Interfaces > IG > IGxObjectFilter Interface > IGxObjectFilter.CanSaveObject Method
ArcGIS Developer Help

IGxObjectFilter.CanSaveObject Method

Indicates if a new object named newObjectName could be saved in the specified location. If objectAlreadyExists is set to True, a confirmation dialog will appear asking if the existing object should be replaced.

[Visual Basic .NET]
Public Function CanSaveObject ( _
    ByVal Location As IGxObject, _
    ByVal newObjectName As String, _
    ByRef objectAlreadyExists As Boolean _
) As Boolean
[C#]
public bool CanSaveObject (
    IGxObject Location,
    string newObjectName,
    ref bool objectAlreadyExists
);

Product Availability

Available with ArcGIS Desktop.

See Also

IGxObjectFilter Interface