This documentation is archived and is not being maintained.

SiteMembershipCondition Constructor

Initializes a new instance of the SiteMembershipCondition class with name of the site that determines membership.

[Visual Basic]
Public Sub New( _
   ByVal site As String _
)
[C#]
public SiteMembershipCondition(
   string site
);
[C++]
public: SiteMembershipCondition(
   String* site
);
[JScript]
public function SiteMembershipCondition(
   site : String
);

Parameters

site
The site name or wildcard expression.

Exceptions

Exception Type Condition
ArgumentNullException The site parameter is a null reference (Nothing in Visual Basic).
ArgumentException The site parameter is not a valid Site.

Remarks

Code satisfies this membership condition if it is downloaded from a site whose DNS name matches the site specified by Site.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SiteMembershipCondition Class | SiteMembershipCondition Members | System.Security.Policy Namespace

Show: