Windows-Apps
Inhaltsverzeichnis reduzieren
Inhaltsverzeichnis erweitern
EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

WinJS.Class.derive function

Applies to Windows and Windows Phone

Creates a sub-class based on the specified baseClass parameter, using prototype inheritance.

Syntax


var object = WinJS.Class.derive(baseClass, constructor, instanceMembers, staticMembers);

Parameters

baseClass

Type: Object

The type to inherit from.

constructor

Type: Function

A constructor function that is used to instantiate this type.

instanceMembers

Type: Object

The set of instance fields, properties, and methods to be made available on the type.

staticMembers

Type: Object

The set of static fields, properties, and methods to be made available on the type.

Return value

Type: Object

The newly-defined type.

Remarks

For more information about prototypes and protype inheritance, see Prototypes and Prototype Inheritance.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Class

 

 

Anzeigen:
© 2017 Microsoft