IDebugCustomAttribute::GetAttributeBytes

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Gets the attribute information as a blob of bytes.

Syntax

HRESULT GetAttributeBytes( 
   BYTE*  ppBlob,
   DWORD* pdwLen
);
int GetAttributeBytes(
   ref byte[] ppBlob,
   ref uint   pdwLen
);

Parameters

ppBlob
[in, out] An array that is filled in with the attribute bytes.

pdwLen
[in, out] Specifies the maximum number of bytes to return in the ppBlob array and returns the number of bytes actually written to the array.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

Set the ppBlob parameter to a null value to return the number of attributes bytes available. Then allocate an array and pass that array in for the ppBlob parameter.

The attribute bytes represent the raw data of the custom attribute.

See also