共用方式為


IppAttributeValue 類別

定義

表示由 網際網路列印通訊協定 (IPP) 規格所定義的屬性值。 這個類別提供靜態方法,可用來建立 IppAttributeValue 物件,此物件代表指定屬性名稱的實例,並具有指定的值 (s) ,以及可用來取得已建立值的靜態方法。

public ref class IppAttributeValue sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 851968)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class IppAttributeValue final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 851968)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class IppAttributeValue
Public NotInheritable Class IppAttributeValue
繼承
Object Platform::Object IInspectable IppAttributeValue
屬性

Windows 需求

裝置系列
Windows 11 (已於 10.0.22000.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v14.0 引進)

備註

如需此類別的詳細資訊,請參閱 列印支援應用程式設計指南

屬性

Kind

取得值,這個值表示這個 IppAttributeValue 物件所代表的屬性類型。

方法

CreateBoolean(Boolean)

建立 IppAttributeValue 物件,其中包含 boolean 具有指定值的屬性,如網際網路列印通訊協定 (IPP) 所定義。

CreateBooleanArray(IIterable<Boolean>)

建立包含具有指定值之屬性陣列的 booleanIppAttributeValue物件。

CreateCharset(String)

建立 IppAttributeValue 物件,其中包含 charset 具有指定值的屬性,如網際網路列印通訊協定 (IPP) 所定義。

CreateCharsetArray(IIterable<String>)

建立包含具有指定值之屬性陣列的 charsetIppAttributeValue物件。

CreateCollection(IIterable<KeyValuePair<String,IppAttributeValue>>)

建立 IppAttributeValue 物件,其中包含 collection 具有指定值的屬性,如網際網路列印通訊協定 (IPP) 所定義。

CreateCollectionArray(IIterable<IEnumerable<KeyValuePair<String,IppAttributeValue>>>)

建立包含具有指定值之屬性陣列的 collectionIppAttributeValue物件。

CreateDateTime(DateTime)

建立 IppAttributeValue 物件,其中包含 dateTime 具有指定值的屬性,如網際網路列印通訊協定 (IPP) 所定義。

CreateDateTimeArray(IIterable<DateTime>)

建立包含具有指定值之屬性陣列的 dateTimeIppAttributeValue物件。

CreateEnum(Int32)

建立 IppAttributeValue 物件,其中包含 enum 具有指定值的屬性,如網際網路列印通訊協定 (IPP) 所定義。

CreateEnumArray(IIterable<Int32>)

建立包含具有指定值之屬性陣列的 enumIppAttributeValue物件。

CreateInteger(Int32)

建立 IppAttributeValue 物件,其中包含 integer 具有指定值的屬性,如網際網路列印通訊協定 (IPP) 所定義。

CreateIntegerArray(IIterable<Int32>)

建立包含具有指定值之屬性陣列的 integerIppAttributeValue物件。

CreateKeyword(String)

建立 IppAttributeValue 物件,其中包含 keyword 具有指定值的屬性,如網際網路列印通訊協定 (IPP) 所定義。

CreateKeywordArray(IIterable<String>)

建立包含具有指定值之屬性陣列的 keywordIppAttributeValue物件。

CreateMimeMedia(String)

建立 IppAttributeValue 物件,其中包含 mimeMediaType 具有指定值的屬性,如網際網路列印通訊協定 (IPP) 所定義。

CreateMimeMediaArray(IIterable<String>)

建立包含具有指定值之屬性陣列的 mimeMediaTypeIppAttributeValue物件。

CreateNameWithLanguage(IppTextWithLanguage)

建立 IppAttributeValue 物件,其中包含 createNameWithLanguage 具有指定值的屬性,如網際網路列印通訊協定 (IPP) 所定義。

CreateNameWithLanguageArray(IIterable<IppTextWithLanguage>)

建立包含具有指定值之屬性陣列的 createNameWithLanguageIppAttributeValue物件。

CreateNameWithoutLanguage(String)

建立 IppAttributeValue 物件,其中包含 nameWithoutLanguage 具有指定值的屬性,如網際網路列印通訊協定 (IPP) 所定義。

CreateNameWithoutLanguageArray(IIterable<String>)

建立包含具有指定值之屬性陣列的 nameWithoutLanguageIppAttributeValue物件。

CreateNaturalLanguage(String)

建立 IppAttributeValue 物件,其中包含 naturalLanguage 具有指定值的屬性,如網際網路列印通訊協定 (IPP) 所定義。

CreateNaturalLanguageArray(IIterable<String>)

建立包含具有指定值之屬性陣列的 naturalLanguageIppAttributeValue物件。

CreateNoValue()

建立代表屬性的 no-valueIppAttributeValue物件,如網際網路列印通訊協定 (IPP) 所定義。

CreateOctetString(IBuffer)

建立 IppAttributeValue 物件,其中包含 octetString 具有指定值的屬性,如網際網路列印通訊協定 (IPP) 所定義。

CreateOctetStringArray(IIterable<IBuffer>)

建立包含具有指定值之屬性陣列的 octetStringIppAttributeValue物件。

CreateRangeOfInteger(IppIntegerRange)

建立 IppAttributeValue 物件,其中包含 rangeOfInteger 具有指定值的屬性,如網際網路列印通訊協定 (IPP) 所定義。

CreateRangeOfIntegerArray(IIterable<IppIntegerRange>)

建立包含具有指定值之屬性陣列的 rangeOfIntegerIppAttributeValue物件。

CreateResolution(IppResolution)

建立 IppAttributeValue 物件,其中包含 resolution 具有指定值的屬性,如網際網路列印通訊協定 (IPP) 所定義。

CreateResolutionArray(IIterable<IppResolution>)

建立包含具有指定值之屬性陣列的 resolutionIppAttributeValue物件。

CreateTextWithLanguage(IppTextWithLanguage)

建立 IppAttributeValue 物件,其中包含 textWithLanguage 具有指定值的屬性,如網際網路列印通訊協定 (IPP) 所定義。

CreateTextWithLanguageArray(IIterable<IppTextWithLanguage>)

建立包含具有指定值之屬性陣列的 textWithLanguageIppAttributeValue物件。

CreateTextWithoutLanguage(String)

建立 IppAttributeValue 物件,其中包含 textWithoutLanguage 具有指定值的屬性,如網際網路列印通訊協定 (IPP) 所定義。

CreateTextWithoutLanguageArray(IIterable<String>)

建立包含具有指定值之屬性陣列的 textWithoutLanguageIppAttributeValue物件。

CreateUnknown()

建立代表屬性的 unknownIppAttributeValue物件,如網際網路列印通訊協定 (IPP) 所定義。

CreateUnsupported()

建立代表屬性的 unsupportedIppAttributeValue物件,如網際網路列印通訊協定 (IPP) 所定義。

CreateUri(Uri)

建立 IppAttributeValue 物件,其中包含 uri 具有指定值的屬性,如網際網路列印通訊協定 (IPP) 所定義。

CreateUriArray(IIterable<Uri>)

建立包含具有指定值之屬性陣列的 uriIppAttributeValue物件。

CreateUriSchema(String)

建立 IppAttributeValue 物件,其中包含 uriScheme 具有指定值的屬性,如網際網路列印通訊協定 (IPP) 所定義。

CreateUriSchemaArray(IIterable<String>)

建立包含具有指定值之屬性陣列的 uriSchemeIppAttributeValue物件。

GetBooleanArray()

取得包含在目前IppAttributeValue物件中的屬性陣列 boolean

GetCharsetArray()

取得包含在目前IppAttributeValue物件中的屬性陣列 charset

GetCollectionArray()

取得包含在目前IppAttributeValue物件中的屬性陣列 collection

GetDateTimeArray()

取得包含在目前IppAttributeValue物件中的屬性陣列 dateTime

GetEnumArray()

取得包含在目前IppAttributeValue物件中的屬性陣列 enum

GetIntegerArray()

取得包含在目前IppAttributeValue物件中的屬性陣列 integer

GetKeywordArray()

取得包含在目前IppAttributeValue物件中的屬性陣列 keyword

GetMimeMediaTypeArray()

取得包含在目前IppAttributeValue物件中的屬性陣列 mimeMediaType

GetNameWithLanguageArray()

取得包含在目前IppAttributeValue物件中的屬性陣列 nameWithLanguage

GetNameWithoutLanguageArray()

取得包含在目前IppAttributeValue物件中的屬性陣列 nameWithoutLanguage

GetNaturalLanguageArray()

取得包含在目前IppAttributeValue物件中的屬性陣列 naturalLanguage

GetOctetStringArray()

取得包含在目前IppAttributeValue物件中的屬性陣列 octetString

GetRangeOfIntegerArray()

取得包含在目前IppAttributeValue物件中的屬性陣列 rangeOfInteger

GetResolutionArray()

取得包含在目前IppAttributeValue物件中的屬性陣列 resolution

GetTextWithLanguageArray()

取得包含在目前IppAttributeValue物件中的屬性陣列 textWithLanguage

GetTextWithoutLanguageArray()

取得包含在目前IppAttributeValue物件中的屬性陣列 textWithoutLanguage

GetUriArray()

取得包含在目前IppAttributeValue物件中的屬性陣列 uri

GetUriSchemaArray()

取得包含在目前IppAttributeValue物件中的屬性陣列 uriScheme

適用於

另請參閱