SPEventReceiverDefinition.Assembly Property

Gets or sets the strong name that represents the assembly that is used for event receiving.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Property Assembly As String
    Get
    Set
'Usage
Dim instance As SPEventReceiverDefinition
Dim value As String

value = instance.Assembly

instance.Assembly = value
public string Assembly { get; set; }

Property Value

Type: System.String
A string containing the strong name that represents the assembly, such as follows:
EventHandlerName , Version=1.0.0.0, Culture=neutral, PublicKeyToken=a26b5449ac4a4cf3

Remarks

This property represents an assembly, which is a collection of types and resources that are built to work together and form a logical unit of functionality. An assembly provides the common language runtime with the information it needs to be aware of type implementations. It is also possible to create features that deploy event handlers to the assembly cache.

See Also

Reference

SPEventReceiverDefinition Class

SPEventReceiverDefinition Members

Microsoft.SharePoint Namespace

Other Resources

How to: Create an Event Handler Feature