NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

22.13 Interfaces Grammar

13.1 Interface declarations

interface-declaration:
attributesopt interface-modifiersopt interface identifier interface-baseopt interface-body ;opt

13.1.1 Interface modifiers

interface-modifiers:
interface-modifier
interface-modifiers interface-modifier
interface-modifier:
new
public
protected
internal
private

13.1.2 Base interfaces

interface-base:
: interface-type-list

13.1.3 Interface body

interface-body:
{ interface-member-declarationsopt }

13.2 Interface members

interface-member-declarations:
interface-member-declaration
interface-member-declarations interface-member-declaration
interface-member-declaration:
interface-method-declaration
interface-property-declaration
interface-event-declaration
interface-indexer-declaration

13.2.1 Interface methods

interface-method-declaration:
attributesopt newopt return-type identifier ( formal-parameter-listopt ) ;

13.2.2 Interface properties

interface-property-declaration:
attributesopt newopt type identifier { interface-accessors }
interface-accessors:
get ;
set ;
get ; set ;
set ; get ;

13.2.3 Interface events

interface-event-declaration:
attributesopt newopt event type identifier ;

13.2.4 Interface indexers

interface-indexer-declaration:
attributesopt newopt type this [ formal-index-parameter-list ] { interface-accessors }