VersionControlServer.CreateWorkspace メソッド (String, String, String, array<WorkingFolder[], String, WorkspacePermissionProfile, Boolean)
新しい Workspace を作成します。
名前空間: Microsoft.TeamFoundation.VersionControl.Client
アセンブリ: Microsoft.TeamFoundation.VersionControl.Client (Microsoft.TeamFoundation.VersionControl.Client.dll 内)
構文
'宣言
Public Function CreateWorkspace ( _
name As String, _
owner As String, _
comment As String, _
mappings As WorkingFolder(), _
computer As String, _
permissionProfile As WorkspacePermissionProfile, _
removeUnparentedCloaks As Boolean _
) As Workspace
public Workspace CreateWorkspace(
string name,
string owner,
string comment,
WorkingFolder[] mappings,
string computer,
WorkspacePermissionProfile permissionProfile,
bool removeUnparentedCloaks
)
パラメーター
- name
型 : System.String
作成する Workspace の名前。この所有者で一意である必要があります。
- owner
型 : System.String
作成する Workspace のオーナー。
- comment
型 : System.String
Workspace を説明するコメント。
- mappings
型 : array<Microsoft.TeamFoundation.VersionControl.Client.WorkingFolder[]
Workspace に対して確立する作業フォルダーの配列。
- computer
型 : System.String
Workspace コンピューターです。
- permissionProfile
型 : Microsoft.TeamFoundation.VersionControl.Client.WorkspacePermissionProfile
この Workspaceのアクセス許可のプロファイル。
- removeUnparentedCloaks
型 : System.Boolean
true の場合、は無視できるマッピングのエラーを削除します。
戻り値
型 : Microsoft.TeamFoundation.VersionControl.Client.Workspace
新しい Workspaceを表すワークスペースのオブジェクトへの参照。
解説
呼び出し元の ID は CreateWorkspace のグローバルなアクセス許可が必要です。 例外は、ワークスペースを作成できない場合にスローされます。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。