SPUserCodeCachedAssemblyGroup.ContainsAssembly 方法
确定SPUserCodeCachedAssemblyGroup是否包含指定的程序集。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Function ContainsAssembly ( _
strongName As String _
) As Boolean
用法
Dim instance As SPUserCodeCachedAssemblyGroup
Dim strongName As String
Dim returnValue As Boolean
returnValue = instance.ContainsAssembly(strongName)
public bool ContainsAssembly(
string strongName
)
参数
strongName
类型:System.String程序集的完全限定的名称。
返回值
类型:System.Boolean
true如果SPUserCodeCachedAssemblyGroup包含程序集与指定的名称 ;否则为false。
异常
异常 | 条件 |
---|---|
ArgumentException | strongName是 null 。 |
备注
程序集添加到SPUserCodeCachedAssemblyGroup的Add()方法。
另请参阅
引用
SPUserCodeCachedAssemblyGroup 类