SharedAttribute Class

.NET Framework (current version)
 

Marks the decorated part as being constrained to sharing within the specified boundary.

Namespace:   System.Composition
Assembly:  System.Composition.AttributedModel (in System.Composition.AttributedModel.dll)


[AttributeUsageAttribute(AttributeTargets.Class, Inherited = false)]
public class SharedAttribute : PartMetadataAttribute

NameDescription
System_CAPS_pubmethodSharedAttribute()

Initializes a new instance of the SharedAttribute class marked as globally shared.

System_CAPS_pubmethodSharedAttribute(String)

Initializes a new instance of the SharedAttribute class with the specified sharing boundary.

NameDescription
System_CAPS_pubpropertyName

Gets the name of the metadata value.(Inherited from PartMetadataAttribute.)

System_CAPS_pubpropertySharingBoundary

Gets or sets the boundary outside which the part marked by this attribute is inaccessible.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

System_CAPS_pubpropertyValue

Gets the metadata value.(Inherited from PartMetadataAttribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: