VssClientCredentials Constructor (WindowsCredential, FederatedCredential, CredentialPromptType, TaskScheduler, IVssCredentialPrompt)
Initializes a new VssCredentials instance with the specified windows and issued token credential.
Namespace: Microsoft.VisualStudio.Services.Client
Assembly: Microsoft.VisualStudio.Services.Client (in Microsoft.VisualStudio.Services.Client.dll)
Syntax
'Declaration
Public Sub New ( _
windowsCredential As WindowsCredential, _
federatedCredential As FederatedCredential, _
promptType As CredentialPromptType, _
scheduler As TaskScheduler, _
credentialPrompt As IVssCredentialPrompt _
)
public VssClientCredentials(
WindowsCredential windowsCredential,
FederatedCredential federatedCredential,
CredentialPromptType promptType,
TaskScheduler scheduler,
IVssCredentialPrompt credentialPrompt
)
public:
VssClientCredentials(
WindowsCredential^ windowsCredential,
FederatedCredential^ federatedCredential,
CredentialPromptType promptType,
TaskScheduler^ scheduler,
IVssCredentialPrompt^ credentialPrompt
)
new :
windowsCredential:WindowsCredential *
federatedCredential:FederatedCredential *
promptType:CredentialPromptType *
scheduler:TaskScheduler *
credentialPrompt:IVssCredentialPrompt -> VssClientCredentials
public function VssClientCredentials(
windowsCredential : WindowsCredential,
federatedCredential : FederatedCredential,
promptType : CredentialPromptType,
scheduler : TaskScheduler,
credentialPrompt : IVssCredentialPrompt
)
Parameters
windowsCredential
Type: Microsoft.VisualStudio.Services.Common.WindowsCredentialThe windows credential to use for authentication.
federatedCredential
Type: Microsoft.VisualStudio.Services.Common.FederatedCredentialThe federated credential to use for authentication.
promptType
Type: Microsoft.VisualStudio.Services.Common.CredentialPromptTypeCredentialPromptType.PromptIfNeeded if interactive prompts are allowed; otherwise, CredentialProptType.DoNotPrompt.
scheduler
Type: System.Threading.Tasks.TaskSchedulerAn optional TaskScheduler to ensure credentials prompting occurs on the UI thread.
credentialPrompt
Type: Microsoft.VisualStudio.Services.Common.IVssCredentialPromptAn optional IVssCredentialPrompt to perform prompting for credentials.
.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.