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
site
Type: Microsoft.SharePoint.SPSiteThe site
assemblyName
Type: System.StringThe strong name of the assembly containing the custom record handler class
className
Type: System.StringThe 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
Microsoft.Office.RecordsManagement.RecordsRepository namespace