ISafeControlEntryCollection.Add Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
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.StringThe namespace of the safe control entry.
typeName
Type: System.StringThe type of the safe control entry.
assemblyName
Type: System.StringThe fully-qualified assembly name of the safe control entry.
isSafe
Type: System.BooleanSpecifies whether the safe control entry is safe.
Return Value
Type: Microsoft.VisualStudio.SharePoint.ISafeControlEntry
An instance of a safe control entry.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.