Click or drag to resize
UserInfoIsInMembership Method (String, String, Boolean)
Check whether current user is in membership

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 8.2.23
Syntax
C#
public virtual bool IsInMembership(
	string membershipName,
	string siteName,
	bool checkGlobal
)

Parameters

membershipName
Type: SystemString
Membership name
siteName
Type: SystemString
Site name
checkGlobal
Type: SystemBoolean
If true global memberships are checked

Return Value

Type: Boolean
See Also