Edit

Share via


IDebugCustomAttribute::GetName

Gets the name of the custom attribute.

Syntax

int GetName(
   out string bstrName
);

Parameters

bstrName
[out] Returns a string containing the name of the custom attribute.

Return Value

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

Remarks

The named returned by this method corresponds to the name of the class used to declare the attribute. This may not exactly correspond to the name of the custom attribute class itself as C# allows the "Attribute" suffix to be dropped from a custom attribute name when it is used in a declaration.

See also