IWorkspaceScriptable::IsWorkspaceCredentialSpecified method (workspaceruntime.h)

Determines whether user credentials exist for the specified connection ID.

Syntax

HRESULT IsWorkspaceCredentialSpecified(
  [in]          BSTR         bstrWorkspaceId,
  [in]          VARIANT_BOOL bCountUnauthenticatedCredentials,
  [out, retval] VARIANT_BOOL *pbCredExist
);

Parameters

[in] bstrWorkspaceId

A string that contains the connection ID.

[in] bCountUnauthenticatedCredentials

VARIANT_TRUE to specify that the pbCredExist parameter should return VARIANT_TRUE if credentials (authenticated or unauthenticated) exist for the connection ID specified in the bstrWorkspaceId parameter. VARIANT_FALSE to specify that the pbCredExist parameter should return VARIANT_TRUE only if authenticated credentials exist for the connection ID specified in the bstrWorkspaceId parameter.

[out, retval] pbCredExist

A pointer to a VARIANT_BOOL variable to receive whether credentials exist for the connection ID specified in the bstrWorkspaceId parameter. This value is VARIANT_TRUE if credentials exist; otherwise, VARIANT_FALSE.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 7
Minimum supported server Windows Server 2008 R2
Target Platform Windows
Header workspaceruntime.h

See also

IWorkspaceScriptable

IWorkspaceScriptable2

IWorkspaceScriptable3