共用方式為


UserProfileManager.IsAvailable Method

Gets a value indicating whether there is a working connection to a User Profile Application in the specified service context.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Public Shared Function IsAvailable ( _
    serviceContext As SPServiceContext _
) As Boolean
'Usage
Dim serviceContext As SPServiceContext
Dim returnValue As Boolean

returnValue = UserProfileManager.IsAvailable(serviceContext)
public static bool IsAvailable(
    SPServiceContext serviceContext
)

Parameters

Return Value

Type: System.Boolean
Returns Boolean.

See Also

Reference

UserProfileManager Class

UserProfileManager Members

Microsoft.Office.Server.UserProfiles Namespace