Delen via


ISecurityService.CreateSecurityNamespace Method

Creates a SecurityNamespace that is based off of the provided information.

Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
Function CreateSecurityNamespace ( _
    description As SecurityNamespaceDescription _
) As SecurityNamespace
SecurityNamespace CreateSecurityNamespace(
    SecurityNamespaceDescription description
)
SecurityNamespace^ CreateSecurityNamespace(
    SecurityNamespaceDescription^ description
)
abstract CreateSecurityNamespace : 
        description:SecurityNamespaceDescription -> SecurityNamespace
function CreateSecurityNamespace(
    description : SecurityNamespaceDescription
) : SecurityNamespace

Parameters

Return Value

Type: Microsoft.TeamFoundation.Framework.Client.SecurityNamespace

Exceptions

Exception Condition
InvalidSecurityNamespaceDescriptionException

Thrown if the SecurityNamespaceDescription does not pass validation for some reason.

SecurityNamespaceAlreadyExistsException

Thrown if a SecurityNamespace already exists with id of the description passed in.

.NET Framework Security

See Also

Reference

ISecurityService Interface

Microsoft.TeamFoundation.Framework.Client Namespace