Share via


Records.RegisterCustomCodeForRecordDeclaration Method

Registers a custom record processing handler class to the specified site.

Namespace:  Microsoft.Office.RecordsManagement.RecordsRepository
Assembly:  Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)

Syntax

'Declaration
Public Shared Sub RegisterCustomCodeForRecordDeclaration ( _
    site As SPSite, _
    assemblyName As String, _
    className As String _
)
'Usage
Dim site As SPSite
Dim assemblyName As String
Dim className As StringRecords.RegisterCustomCodeForRecordDeclaration(site, _
    assemblyName, className)
public static void RegisterCustomCodeForRecordDeclaration(
    SPSite site,
    string assemblyName,
    string className
)

Parameters

  • assemblyName
    Type: System.String

    The strong name of the assembly containing the custom record handler class

  • className
    Type: System.String

    The fully-qualified class name of the custom record handler

Remarks

Custom record handler class should implement the IrecordDeclarationHandler interface and/or the IRecordUndeclarationHandler interface.

See Also

Reference

Records Class

Records Members

Microsoft.Office.RecordsManagement.RecordsRepository Namespace