UserInfoProviderCheckUserBelongsToSite Method |
Check if user belongs to specified site, considering settings key CMSSiteSharedAccounts.
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 8.2.23
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