SPUserCodeCachedAssemblyGroup.ContainsAssembly Method
Determines whether the SPUserCodeCachedAssemblyGroup contains a specified assembly.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Function ContainsAssembly ( _
strongName As String _
) As Boolean
'Usage
Dim instance As SPUserCodeCachedAssemblyGroup
Dim strongName As String
Dim returnValue As Boolean
returnValue = instance.ContainsAssembly(strongName)
public bool ContainsAssembly(
string strongName
)
Parameters
strongName
Type: System.StringThe fully qualified name of the assembly.
Return Value
Type: System.Boolean
true if the SPUserCodeCachedAssemblyGroup contains an assembly with the specified name; otherwise, false.
Exceptions
Exception | Condition |
---|---|
ArgumentException | strongName is null . |
Remarks
Assemblies are added to the SPUserCodeCachedAssemblyGroup by the Add() method.
See Also
Reference
SPUserCodeCachedAssemblyGroup Class