Click or drag to resize
UserInfoProviderCheckUserBelongsToSite Method
Check if user belongs to specified site, considering settings key CMSSiteSharedAccounts.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 12.0.0
Syntax
C#
public static UserInfo CheckUserBelongsToSite(
	UserInfo user,
	string siteName
)

Parameters

user
Type: CMS.MembershipUserInfo
UserInfo
siteName
Type: SystemString
SiteName

Return Value

Type: UserInfo
Returns same UserInfo if user belongs to site(if shared accounts disabled) or null if not
See Also