ComponentInternalAttribute()
Initializes a new instance of the ComponentInternalAttribute class that prevents the target declaration from being used from a namespace other than the namespace of the declaration.
Declaration
public ComponentInternalAttribute()ComponentInternalAttribute(params Type[])
Initializes a new instance of the ComponentInternalAttribute class that prevents the target declaration from being used outside of the given types or namespaces, which are specified as Type objects.
Declaration
public ComponentInternalAttribute(params Type[] friendTypes)Parameters
| Type | Name | Description |
|---|---|---|
| Type[] | friendTypes | The list of types from which the target declaration can be used. If the name of a
type is |
ComponentInternalAttribute(params string[])
Initializes a new instance of the ComponentInternalAttribute class that prevents the target declaration from being used outside of the given types or namespaces, which are specified as strings.
Declaration
public ComponentInternalAttribute(params string[] friendNamespaces)Parameters
| Type | Name | Description |
|---|---|---|
| string[] | friendNamespaces | The list of types or namespaces from which the target declaration can be used. |