Class NcStateType
A data type for a state, commonwealth, province, or other such geopolitical subdivision of a country.
Inheritance
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class NcStateType : IEquatable<NcStateType>
Properties
Code
A state, commonwealth, province, or other such geopolitical subdivision of a country. NIEM reference is nc:StateCode
Declaration
[DataMember(Name = "code")]
public List<NcCodeType> Code { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcCodeType> | A state, commonwealth, province, or other such geopolitical subdivision of a country. NIEM reference is nc:StateCode |
Context
ncStateType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public NcStateType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<NcStateType.ContextEnum> | ncStateType JSON-LD context |
Iso3166Code
A state, commonwealth, province, or other such geopolitical subdivision of a country. NIEM reference is nc:StateISO3166Code
Declaration
[DataMember(Name = "iso3166Code")]
public List<Iso3166CountrySubdivisionCodeType> Iso3166Code { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Iso3166CountrySubdivisionCodeType> | A state, commonwealth, province, or other such geopolitical subdivision of a country. NIEM reference is nc:StateISO3166Code |
LocationCanadianProvinceCode
A province. NIEM reference is nc:LocationCanadianProvinceCode
Declaration
[DataMember(Name = "locationCanadianProvinceCode")]
public List<CanCanadianProvinceCodeType> LocationCanadianProvinceCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<CanCanadianProvinceCodeType> | A province. NIEM reference is nc:LocationCanadianProvinceCode |
LocationFips52Code
A state, commonwealth, province, or other such geopolitical subdivision of a country. NIEM reference is nc:LocationStateFIPS5-2Code
Declaration
[DataMember(Name = "locationFips5-2Code")]
public List<Fips52USStateNumericCodeType> LocationFips52Code { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Fips52USStateNumericCodeType> | A state, commonwealth, province, or other such geopolitical subdivision of a country. NIEM reference is nc:LocationStateFIPS5-2Code |
LocationName
A name of a state, commonwealth, province, or other such geopolitical subdivision of a country. NIEM reference is nc:LocationStateName
Declaration
[DataMember(Name = "locationName")]
public List<NcProperNameTextType> LocationName { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcProperNameTextType> | A name of a state, commonwealth, province, or other such geopolitical subdivision of a country. NIEM reference is nc:LocationStateName |
LocationNciclisCode
A state, commonwealth, province, or other such geopolitical subdivision of a country. NIEM reference is j:LocationStateNCICLISCode
Declaration
[DataMember(Name = "locationNciclisCode")]
public List<NcicCountryCodeType> LocationNciclisCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcicCountryCodeType> | A state, commonwealth, province, or other such geopolitical subdivision of a country. NIEM reference is j:LocationStateNCICLISCode |
LocationNciclstaCode
A state, commonwealth, province, or other such geopolitical subdivision of a country. NIEM reference is j:LocationStateNCICLSTACode
Declaration
[DataMember(Name = "locationNciclstaCode")]
public List<NcicCountryCodeType> LocationNciclstaCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcicCountryCodeType> | A state, commonwealth, province, or other such geopolitical subdivision of a country. NIEM reference is j:LocationStateNCICLSTACode |
LocationNcicresCode
A state, commonwealth, province, or other such geopolitical subdivision of a country. NIEM reference is j:LocationStateNCICRESCode
Declaration
[DataMember(Name = "locationNcicresCode")]
public List<NcicCountryCodeType> LocationNcicresCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcicCountryCodeType> | A state, commonwealth, province, or other such geopolitical subdivision of a country. NIEM reference is j:LocationStateNCICRESCode |
LocationUsPostalServiceCode
A state, commonwealth, province, or other such geopolitical subdivision of a country. NIEM reference is nc:LocationStateUSPostalServiceCode
Declaration
[DataMember(Name = "locationUsPostalServiceCode")]
public List<UspsUSStateCodeType> LocationUsPostalServiceCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<UspsUSStateCodeType> | A state, commonwealth, province, or other such geopolitical subdivision of a country. NIEM reference is nc:LocationStateUSPostalServiceCode |
Methods
Equals(NcStateType)
Returns true if NcStateType instances are equal
Declaration
public bool Equals(NcStateType other)
Parameters
Type | Name | Description |
---|---|---|
NcStateType | other | Instance of NcStateType to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Operators
Equality(NcStateType, NcStateType)
Declaration
public static bool operator ==(NcStateType left, NcStateType right)
Parameters
Type | Name | Description |
---|---|---|
NcStateType | left | |
NcStateType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(NcStateType, NcStateType)
Declaration
public static bool operator !=(NcStateType left, NcStateType right)
Parameters
Type | Name | Description |
---|---|---|
NcStateType | left | |
NcStateType | right |
Returns
Type | Description |
---|---|
System.Boolean |