ClientRuntimeContext.AddClientTypeAssembly 方法

Stores the client library type of the calling assembly.

命名空间:  Microsoft.SharePoint.Client
程序集:   Microsoft.SharePoint.Client.Silverlight.Runtime(位于 Microsoft.SharePoint.Client.Silverlight.Runtime.dll 中);  Microsoft.SharePoint.Client.Phone.Runtime(位于 Microsoft.SharePoint.Client.Phone.Runtime.dll 中)  Microsoft.SharePoint.Client.Runtime(位于 Microsoft.SharePoint.Client.Runtime.dll 中)

语法

声明
Public Shared Sub AddClientTypeAssembly ( _
    assembly As Assembly _
)
用法
Dim assembly As [Assembly]

ClientRuntimeContext.AddClientTypeAssembly(assembly)
public static void AddClientTypeAssembly(
    Assembly assembly
)

参数

备注

By default, the runtime checks all of the loaded assemblies and retrieves the client type information. This process is executed only once, when the runtime needs the client type information. If the assembly is dynamically loaded after the process, the runtime will not retrieve the client type information. Therefore, this method should be called for all dynamically loaded assemblies that contain client library types that have the ClientTypeAssemblyAttribute attribute.

另请参阅

引用

ClientRuntimeContext 类

ClientRuntimeContext 成员

Microsoft.SharePoint.Client 命名空间