Share via


InternalsVisibleToAttribute Constructor

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Initializes a new instance of the InternalsVisibleToAttribute class with the name of the specified friend assembly.

Namespace:  System.Runtime.CompilerServices
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Sub New ( _
    assemblyName As String _
)
public InternalsVisibleToAttribute(
    string assemblyName
)
public:
InternalsVisibleToAttribute(
    String^ assemblyName
)
new : 
        assemblyName:string -> InternalsVisibleToAttribute
public function InternalsVisibleToAttribute(
    assemblyName : String
)

Parameters

Remarks

The InternalsVisibleToAttribute constructor defines a friend assembly, which is an assembly that has access to the internal types and members of the current assembly.

Both the current assembly and the friend assembly must be unsigned, or both must be signed with a strong name. If both are unsigned, the assemblyName parameter consists of the name of the friend assembly, specified without a directory path or file extension. If both are signed, assemblyName consists of the name of the friend assembly along with its full public key (but not its public key token). The other components of a strong name, such as those that provide culture, version, or processor architecture information, cannot be specified in the assemblyName parameter.

.NET Framework Security

See Also

Reference

InternalsVisibleToAttribute Class

System.Runtime.CompilerServices Namespace