Class Address
Namespace: Aspose.BarCode.ComplexBarcode
Assembly: Aspose.BarCode.dll (25.1.0)
채권자 또는 채무자의 주소입니다.
거리, 집 번호, 우편번호 및 도시를 설정하거나 (타입 구조화된 주소) 주소 라인 1과 2를 설정할 수 있습니다 (타입 결합된 주소 요소). 이 필드 중 하나라도 설정되면 타입이 자동으로 설정됩니다. 필드를 설정하기 전에는 주소 타입이 미정의입니다. 두 타입의 필드가 모두 설정되면 주소 타입이 충돌로 변경됩니다. 이름과 국가 코드는 모든 필드가 비어 있지 않는 한 항상 설정해야 합니다.
public sealed class Address : IEquatable<address>
상속
구현
상속된 멤버
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
생성자
Address()
Address의 인스턴스를 생성합니다.
public Address()
속성
AddressLine1
주소 라인 1을 가져오거나 설정합니다.
주소 라인 1에는 거리 이름, 집 번호 또는 P.O. 박스가 포함됩니다.
이 필드를 설정하면 주소 타입이 Aspose.BarCode.ComplexBarcode.AddressType.CombinedElements로 설정되며, 이미 Aspose.BarCode.ComplexBarcode.AddressType.Structured인 경우 Aspose.BarCode.ComplexBarcode.AddressType.Conflicting으로 변경됩니다.
이 필드는 결합된 요소 주소에만 사용되며 선택 사항입니다.
public string AddressLine1 { get; set; }
속성 값
AddressLine2
주소 라인 2를 가져오거나 설정합니다.
주소 라인 2에는 우편번호와 도시가 포함됩니다.
이 필드를 설정하면 주소 타입이 Aspose.BarCode.ComplexBarcode.AddressType.CombinedElements로 설정되며, 이미 Aspose.BarCode.ComplexBarcode.AddressType.Structured인 경우 Aspose.BarCode.ComplexBarcode.AddressType.Conflicting으로 변경됩니다.
이 필드는 결합된 요소 주소에만 사용되며, 이 유형의 경우 필수입니다.
public string AddressLine2 { get; set; }
속성 값
CountryCode
두 글자 ISO 국가 코드를 가져오거나 설정합니다.
국가 코드는 전체 주소가 null
또는 빈 값으로 구성되지 않는 한 필수입니다.
public string CountryCode { get; set; }
속성 값
HouseNo
집 번호를 가져오거나 설정합니다.
이 필드를 설정하면 주소 타입이 Aspose.BarCode.ComplexBarcode.AddressType.Structured로 설정되며, 이미 Aspose.BarCode.ComplexBarcode.AddressType.CombinedElements인 경우 Aspose.BarCode.ComplexBarcode.AddressType.Conflicting으로 변경됩니다.
이 필드는 구조화된 주소에만 사용되며 선택 사항입니다.
public string HouseNo { get; set; }
속성 값
Name
자연인의 경우 이름과 성 또는 법인의 경우 회사 이름을 가져오거나 설정합니다.
public string Name { get; set; }
속성 값
PostalCode
우편번호를 가져오거나 설정합니다.
이 필드를 설정하면 주소 타입이 Aspose.BarCode.ComplexBarcode.AddressType.Structured로 설정되며, 이미 Aspose.BarCode.ComplexBarcode.AddressType.CombinedElements인 경우 Aspose.BarCode.ComplexBarcode.AddressType.Conflicting으로 변경됩니다.
이 필드는 구조화된 주소에만 사용되며, 이 유형의 경우 필수입니다.
public string PostalCode { get; set; }
속성 값
Street
거리를 가져오거나 설정합니다.
거리는 집 번호 없이 지정해야 합니다.
이 필드를 설정하면 주소 타입이 Aspose.BarCode.ComplexBarcode.AddressType.Structured로 설정되며, 이미 Aspose.BarCode.ComplexBarcode.AddressType.CombinedElements인 경우 Aspose.BarCode.ComplexBarcode.AddressType.Conflicting으로 변경됩니다.
이 필드는 구조화된 주소에만 사용되며 선택 사항입니다.
public string Street { get; set; }
속성 값
Town
도시 또는 마을을 가져오거나 설정합니다.
이 필드를 설정하면 주소 타입이 Aspose.BarCode.ComplexBarcode.AddressType.Structured로 설정되며, 이미 Aspose.BarCode.ComplexBarcode.AddressType.CombinedElements인 경우 Aspose.BarCode.ComplexBarcode.AddressType.Conflicting으로 변경됩니다.
이 필드는 구조화된 주소에만 사용되며, 이 유형의 경우 필수입니다.
public string Town { get; set; }
속성 값
Type
주소 타입을 가져옵니다.
주소 타입은 거리/집 번호 또는 주소 라인 1과 2를 설정하여 자동으로 설정됩니다. 필드를 설정하기 전에는 주소 타입이 미정의입니다. 두 타입의 필드가 모두 설정되면 주소 타입이 충돌로 변경됩니다.
public AddressType Type { get; }
속성 값
메서드
Clear()
모든 필드를 지우고 타입을 Aspose.BarCode.ComplexBarcode.AddressType.Undetermined로 설정합니다.
public void Clear()
Equals(object)
지정된 객체가 현재 객체와 같은지 여부를 결정합니다.
public override bool Equals(object obj)
매개변수
obj
object
현재 객체와 비교할 객체입니다.
반환 값
true
지정된 객체가 현재 객체와 같으면 그렇지 않으면 false
입니다.
Equals(Address)
지정된 주소가 현재 주소와 같은지 여부를 결정합니다.
public bool Equals(Address other)
매개변수
other
Address
현재 주소와 비교할 주소입니다.
반환 값
true
지정된 객체가 현재 객체와 같으면 그렇지 않으면 false
입니다.
GetHashCode()
이 인스턴스의 해시 코드를 가져옵니다.
public override int GetHashCode()
반환 값
현재 객체의 해시 코드입니다.