UserInfoProviderCheckUserBelongsToSite Method |
Check if user belongs to specified site, considering settings key CMSSiteSharedAccounts.
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax public static UserInfo CheckUserBelongsToSite(
UserInfo user,
string siteName
)
Parameters
- user
- Type: CMS.MembershipUserInfo
UserInfo - siteName
- Type: SystemString
SiteName
Return Value
Type:
UserInfoReturns same UserInfo if user belongs to site(if shared accounts disabled) or null if not
See Also