Edit

Share via


StrongNameIdentityPermission.Name Property

Definition

Gets or sets the simple name portion of the strong name identity.

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
public string Name { get; set; }
member this.Name : string with get, set
Public Property Name As String

Property Value

The simple name of the identity.

Exceptions

The value is an empty string ("").

The property value cannot be retrieved because it contains an ambiguous identity.

Remarks

The value of the Name property can be an exact name or can be modified by a wildcard character in the final position; for example, both MyCompany.MyDepartment.MyFile and MyCompany.MyDepartment.* are valid names. If you attempt to set the Name property to an empty string (""), an ArgumentException is thrown.

Applies to