define function
Réduire la table des matières
Développer la table des matières

WinJS.Namespace.define function

[This documentation is preliminary and is subject to change.]

Applies to: Metro style apps only

Defines a new namespace with the specified name.

Syntax

var object = WinJS.Namespace.define(name, members);

Parameters

name

Type: string

The name of the namespace. This could be a dot-separated name for nested namespaces.

members

Type: object

The members of the new namespace.

Return value

Type: Object

The newly-defined namespace.

Requirements

Minimum supported client

Windows 8 Consumer Preview

Minimum supported server

Windows Server 8 Beta

Namespace

WinJS.Namespace

Library

Base.js

 

 

Build date: 2/10/2012

Ajouts de la communauté

AJOUTER
Afficher:
© 2017 Microsoft