Share via


DeploymentProviderSettingCollection.TryGetValue Method

Definition

Gets the setting value associated with the specified name.

public:
 bool TryGetValue(System::String ^ name, [Runtime::InteropServices::Out] Microsoft::Web::Deployment::DeploymentProviderSetting ^ % providerSetting);
public bool TryGetValue (string name, out Microsoft.Web.Deployment.DeploymentProviderSetting providerSetting);
member this.TryGetValue : string *  -> bool
Public Function TryGetValue (name As String, ByRef providerSetting As DeploymentProviderSetting) As Boolean

Parameters

name
String

The name of the value to get.

providerSetting
DeploymentProviderSetting

When this method returns, contains the value associated with the specified name, if the name is found; otherwise, the default value for the type of the providerSetting parameter. This parameter is passed uninitialized.

Returns

true if the collection contains an element with the specified name; otherwise, false.

Applies to