Share via


NewWebServiceProxy.UseDefaultCredential Property

Gets and sets the value of the UseDefaultCredential parameter of the New-WebServiceProxy cmdlet. This property is introduced in Windows PowerShell 2.0.

Namespace: Microsoft.PowerShell.Commands
Assembly: Microsoft.PowerShell.Commands.Management (in Microsoft.PowerShell.Commands.Management.dll)

Usage

'Usage
Dim instance As NewWebServiceProxy
Dim value As SwitchParameter

value = instance.UseDefaultCredential

instance.UseDefaultCredential = value

Syntax

'Declaration
<AliasAttribute(System.String[])> _
<ParameterAttribute(ParameterSetName:="UseDefaultCredential")> _
<ValidateNotNullAttribute> _
Public Property UseDefaultCredential As SwitchParameter
[AliasAttribute(System.String[])] 
[ParameterAttribute(ParameterSetName="UseDefaultCredential")] 
[ValidateNotNullAttribute] 
public SwitchParameter UseDefaultCredential { get; set; }
[AliasAttribute(System.String[])] 
[ParameterAttribute(ParameterSetName=L"UseDefaultCredential")] 
[ValidateNotNullAttribute] 
public:
property SwitchParameter UseDefaultCredential {
    SwitchParameter get ();
    void set (SwitchParameter value);
}
/** @property */
public SwitchParameter get_UseDefaultCredential ()

/** @property */
public void set_UseDefaultCredential (SwitchParameter value)
public function get UseDefaultCredential () : SwitchParameter

public function set UseDefaultCredential (value : SwitchParameter)

Property Value

When the parameter is specified, the cmdlet sets the UseDefaultCredential parameter in the resulting proxy object to true.

Remarks

This topic is included in this SDK for completeness only. For more information about this cmdlet, see New-WebServiceProxy in the Microsoft TechNet library.

For Help at the command line, type:

get-help new-webserviceproxy

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

NewWebServiceProxy Class
NewWebServiceProxy Members
Microsoft.PowerShell.Commands Namespace

Other Resources

Windows PowerShell SDK