Open sandboxFocus

Property AllowExternalAssemblies

AllowExternalAssemblies

Gets or sets a value indicating whether this attribute can be applied to declarations of external assemblies (that is, to assemblies other than the one in which the custom attribute is instantiated).

Declaration
public bool AllowExternalAssemblies { get; set; }
Property Value
Type Description
bool
Remarks

Unless a class sets it to false, the custom attribute can be applied to declarations of external assemblies.

The getter returns the value set on this instance of MulticastAttributeUsageAttribute, and false when the value is not set. The value that applies to a class is computed at build time from the MulticastAttributeUsageAttribute of the class and of its base classes, so reading this property by reflection does not give it.