共用方式為


DataConnectionProperties.ResolveProperty(String, Boolean) Method

Definition

Looks up the specified property in the list of synonyms and optionally makes this property the primary name for the synonyms collection, if it is not already so.

protected:
 System::ComponentModel::PropertyDescriptor ^ ResolveProperty(System::String ^ name, bool setAsBaseName);
protected System.ComponentModel.PropertyDescriptor ResolveProperty (string name, bool setAsBaseName);
member this.ResolveProperty : string * bool -> System.ComponentModel.PropertyDescriptor
Protected Function ResolveProperty (name As String, setAsBaseName As Boolean) As PropertyDescriptor

Parameters

name
String

The property name of the property to resolve.

setAsBaseName
Boolean

A Boolean value indicating whether to make this property the primary name used as a key into the synonyms collection.

Returns

The specified property as a PropertyDescriptor object, if it is found in the synonyms list; otherwise, null.

Exceptions

The name parameter is null.

Applies to