ComponentInternalAttribute()
In Metalama, use CanOnlyBeUsedFromAttribute and
set the CurrentNamespace property to true
.
Declaration
[Obsolete("In Metalama, use 'CanOnlyBeUsedFromAttribute' and set the 'BaseUsageValidationAttribute.CurrentNamespace' property to <c>true</c>.", false)]
public ComponentInternalAttribute()
ComponentInternalAttribute(params Type[])
In Metalama, use CanOnlyBeUsedFromAttribute and set the Types property.
Declaration
[Obsolete("In Metalama, use 'CanOnlyBeUsedFromAttribute' and set the 'BaseUsageValidationAttribute.Types' property.", false)]
public ComponentInternalAttribute(params Type[] friendTypes)
Parameters
Type | Name | Description |
---|---|---|
Type[] | friendTypes |
ComponentInternalAttribute(params string[])
In Metalama, use CanOnlyBeUsedFromAttribute and set the Namespaces property.
Declaration
[Obsolete("In Metalama, use 'CanOnlyBeUsedFromAttribute' and set the 'BaseUsageValidationAttribute.Namespaces' property.", false)]
public ComponentInternalAttribute(params string[] friendNamespaces)
Parameters
Type | Name | Description |
---|---|---|
string[] | friendNamespaces |