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: 12.0.0
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