PowerTools InputMan for Windows Forms 8.0J
GetAddressFromPhoneCode(String,Boolean) メソッド
使用例 

市外局番を示す System.String 値。
市外局番を完全一致検索する場合は true。それ以外の場合は、前方一致検索が行われます。
市外局番から住所を取得します。市外局番を完全一致検索するかどうかを指定できます。
構文
Public Overloads Function GetAddressFromPhoneCode( _
   ByVal phoneCode As String, _
   ByVal exactMatch As Boolean _
) As IEnumerable(Of PhoneCodeInfo)
public IEnumerable<PhoneCodeInfo> GetAddressFromPhoneCode( 
   string phoneCode,
   bool exactMatch
)

パラメータ

phoneCode
市外局番を示す System.String 値。
exactMatch
市外局番を完全一致検索する場合は true。それ以外の場合は、前方一致検索が行われます。

戻り値の型

検索された住所を示す PhoneCodeInfo オブジェクトのコレクション。
使用例
//  Please use the following namespace
//  using System.Windows.Forms;
//  using GrapeCity.Win.Editors;

public void GetAddressFromPhoneCodeSample()
{
    // Creates instance of GcAddress component.
    GcAddress gcAddress1 = new GcAddress();

    // Gets the records whose phone code exact match "022".
    System.Console.WriteLine(gcAddress1.GetAddressFromPhoneCode("022"));

    // Gets the records whose phone code start with "022"
    System.Console.WriteLine(gcAddress1.GetAddressFromPhoneCode("022", false));
}
'  Please use the following namespace
'  using System.Windows.Forms;
'  using GrapeCity.Win.Editors;

Public Sub GetAddressFromPhoneCodeSample()
    ' Creates instance of GcAddress component.
    Dim gcAddress1 As New GcAddress()

    ' Gets the records whose phone code exact match "022".
    System.Console.WriteLine(gcAddress1.GetAddressFromPhoneCode("022"))

    ' Gets the records whose phone code start with "022"
    System.Console.WriteLine(gcAddress1.GetAddressFromPhoneCode("022", False))
End Sub
参照

GcAddress クラス
GcAddress メンバ
オーバーロード一覧

 

 


© 2004-2015 GrapeCity inc. All rights reserved.