Share via


ISafeControlEntryCollection.Add Method

Adds a safe control entry to the collection.

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

Syntax

'Declaration
Function Add ( _
    namespaceName As String, _
    typeName As String, _
    assemblyName As String, _
    isSafe As Boolean _
) As ISafeControlEntry
ISafeControlEntry Add(
    string namespaceName,
    string typeName,
    string assemblyName,
    bool isSafe
)

Parameters

  • namespaceName
    Type: System.String
    The namespace of the safe control entry.
  • typeName
    Type: System.String
    The type of the safe control entry.
  • assemblyName
    Type: System.String
    The fully-qualified assembly name of the safe control entry.
  • isSafe
    Type: System.Boolean
    Specifies whether the safe control entry is safe.

Return Value

Type: Microsoft.VisualStudio.SharePoint.ISafeControlEntry
An instance of a safe control entry.

.NET Framework Security

See Also

Reference

ISafeControlEntryCollection Interface

Microsoft.VisualStudio.SharePoint Namespace