次の方法で共有


PrintJob.SetTag(String) Method

Definition

Sets a tag that is valid in the context of a PrintService and is not interpreted by the system.

[Android.Runtime.Register("setTag", "(Ljava/lang/String;)Z", "")]
public bool SetTag (string tag);
[<Android.Runtime.Register("setTag", "(Ljava/lang/String;)Z", "")>]
member this.SetTag : string -> bool

Parameters

tag
String

The tag.

Returns

True if the tag was set, false otherwise.

Attributes

Remarks

Sets a tag that is valid in the context of a PrintService and is not interpreted by the system. For example, a print service may set as a tag the key of the print job returned by a remote print server, if the printing is off handed to a cloud based service.

Java documentation for android.printservice.PrintJob.setTag(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to