MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​ConstraintsComponent­Internal­Attribute
Open sandboxFocus

ComponentInternalAttribute Class

In Metalama, use CanOnlyBeUsedFromAttribute.

Inheritance
System.Object
ComponentInternalAttribute
Namespace: PostSharp.Constraints
Assembly: Metalama.Migration.dll
Syntax
public sealed class ComponentInternalAttribute : ReferenceConstraint, IReferentialConstraint, IConstraint

Constructors

Name Description
ComponentInternalAttribute()

In Metalama, use CanOnlyBeUsedFromAttribute and set the CurrentNamespace property to true.

ComponentInternalAttribute(String[])

In Metalama, use CanOnlyBeUsedFromAttribute and set the Namespaces property.

ComponentInternalAttribute(Type[])

In Metalama, use CanOnlyBeUsedFromAttribute and set the Types property.

Properties

Name Description
Severity

Methods

Name Description
ValidateReference(ICodeReference)