다음을 통해 공유


QueryCollection.setAttribute method

Sets an attribute value on all the items in the collection.

Syntax

var queryCollection = queryCollection.setAttribute(name, value);

Parameters

  • name
    Type: string

    The name of the attribute to be set.

  • value
    Type: object

    The value of the attribute to be set.

Return value

Type: QueryCollection

This QueryCollection object.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Utilities

See also

QueryCollection