ArcObjects Library Reference (Catalog)  

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