pointer_default

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

Specifies the default pointer attribute for all pointers, except top-level pointers that appear in parameter lists.

  
      [ pointer_default(  
   value  
) ]  

Parameters

value
A value that describes the pointer type: ptr, ref, or unique.

The pointer_default C++ attribute has the same functionality as the pointer_default MIDL attribute.

See the example for defaultvalue for a sample use of pointer_default.

Attribute Context

Applies tointerface
RepeatableNo
Required attributesNone
Invalid attributesNone

For more information about the attribute contexts, see Attribute Contexts.

IDL Attributes
Interface Attributes
Attributes Samples

Show: