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!

interfacetype

Specifies the type of an interface for COM interoperability: dispinterface, dual, or derived from IUnknown.

[interfacetype(val)]

Parameters

val
A ComInterfaceType value specifying the interface type.

Applies To

Interface declarations.

Remarks

interfacetype is a single-use attribute. interfacetype is an alias for System.InterOp.InterfaceTypeAttribute.

An interface with the interfacetype attribute must also have a guid specified.

Example

[
   comimport,
   guid("56A868B1-0AD4-11CE-B03A-0020AF0BA770"),
   interfacetype(ComInterfaceType.Dual)
]
interface IMediaControl // can not list any base interfaces here 
{ 
   [returnshresult(true)] void Run();
   [returnshresult(true)] void Pause();
   [returnshresult(true)] void Stop();
   ...

See Also

C# Attributes