IdentityHelper.CreateDescriptorFromSid 方法 (String)
建立 TFS 或 SID 的視窗描述項根據識別。 如果這個型別已經知道,使用這個特定型別的建立方法會快速。
TFS 群組 sids 開始 S-1-9-1551374245。 類別會將視窗,已知的表單是 S-1-5-xxxx,,且有很好知道有表單 S-1-0, S-1-0-xx, S-1-2, S-1-3, S-1-3-xx, S-1-4, S-1-5 的 sids 的群組, S-1-5-xxx
命名空間: Microsoft.TeamFoundation.Framework.Server
組件: Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)
語法
'宣告
Public Shared Function CreateDescriptorFromSid ( _
sid As String _
) As IdentityDescriptor
public static IdentityDescriptor CreateDescriptorFromSid(
string sid
)
參數
- sid
類型:System.String
傳回值
類型:Microsoft.VisualStudio.Services.Identity.IdentityDescriptor
傳回 IdentityDescriptor。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱 從部分受信任程式碼使用程式庫。