Share via


SPUserCodeCachedAssemblyGroup.ContainsAssembly method

Determines whether the SPUserCodeCachedAssemblyGroup contains a specified assembly.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

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.String

    The 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

SPUserCodeCachedAssemblyGroup members

Microsoft.SharePoint.Administration namespace