Windows Dev Center

PrintMediaSizeOptionDetails.TrySetValue | trySetValue method

Sets the value for the media size option.

Syntax


var boolean = printMediaSizeOptionDetails.trySetValue(value);

Parameters

value

Type: Object [JavaScript] | System.Object [.NET] | Platform::Object [C++]

Value for the media size option.

Return value

Type: Boolean [JavaScript] | System.Boolean [.NET] | Platform::Boolean [C++]

Boolean value that indicates TRUE for a successful Get or Set, and FALSE for a failed Get or Set.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Graphics.Printing.OptionDetails
Windows::Graphics::Printing::OptionDetails [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.Graphics.Printing.OptionDetails
Windows::Graphics::Printing::OptionDetails [C++]

Metadata

Windows.winmd

See also

PrintMediaSizeOptionDetails

 

 

Show:
© 2015 Microsoft