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


IEnterpriseWorkspaceFactory.OpenWithNewPassword Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

IEnterpriseWorkspaceFactory.OpenWithNewPassword Method

Opens the workspace specified by the connection properties. Changes the connection password if it's expiring or expired.

[Visual Basic .NET]
Public Function OpenWithNewPassword ( _
    ByVal ConnectionProperties As IPropertySet, _
    ByVal hWnd As Integer, _
    ByVal newPassword As String _
) As IWorkspace
[C#]
public IWorkspace OpenWithNewPassword (
    IPropertySet ConnectionProperties,
    int hWnd,
    string newPassword
);
[C++]
HRESULT OpenWithNewPassword(
  IPropertySet* ConnectionProperties,
  OLE_HANDLE hWnd,
  BSTR newPassword
);
[C++]

Parameters ConnectionProperties [in]
ConnectionProperties is a parameter of type IPropertySet* hWnd [in]
hWnd is a parameter of type OLE_HANDLE newPassword [in]
newPassword is a parameter of type BSTR

Product Availability

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

See Also

IEnterpriseWorkspaceFactory Interface