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

市外局番を示す System.String 値。
その市外局番が指定した市外局番に完全に一致する住所を取得します。
構文
Public Overloads Function GetAddressFromPhoneCode( _
   ByVal phoneCode As String _
) As IEnumerable(Of PhoneCodeInfo)
public IEnumerable<PhoneCodeInfo> GetAddressFromPhoneCode( 
   string phoneCode
)

パラメータ

phoneCode
市外局番を示す System.String 値。

戻り値の型

検索された住所を示す 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.