VssCredentials 建構函式 (WindowsCredential, FederatedCredential, CredentialPromptType, TaskScheduler, IVssCredentialPrompt)
命名空間: Microsoft.VisualStudio.Services.Common
組件: Microsoft.VisualStudio.Services.Common (在 Microsoft.VisualStudio.Services.Common.dll 中)
語法
'宣告
Public Sub New ( _
windowsCredential As WindowsCredential, _
federatedCredential As FederatedCredential, _
promptType As CredentialPromptType, _
scheduler As TaskScheduler, _
credentialPrompt As IVssCredentialPrompt _
)
public VssCredentials(
WindowsCredential windowsCredential,
FederatedCredential federatedCredential,
CredentialPromptType promptType,
TaskScheduler scheduler,
IVssCredentialPrompt credentialPrompt
)
參數
- windowsCredential
類型:Microsoft.VisualStudio.Services.Common.WindowsCredential
- federatedCredential
類型:Microsoft.VisualStudio.Services.Common.FederatedCredential
- scheduler
類型:System.Threading.Tasks.TaskScheduler
- credentialPrompt
類型:Microsoft.VisualStudio.Services.Common.IVssCredentialPrompt
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱 從部分受信任程式碼使用程式庫。