Property(使用 #import 的 Visual C++ 语法索引)
属性
long GetAttributes( );
void PutAttributes( long plAttributes );
__declspec(property(get=GetAttributes,put=PutAttributes)) long
Attributes;
_bstr_t GetName( );
__declspec(property(get=GetName)) _bstr_t Name;
enum DataTypeEnum GetType( );
__declspec(property(get=GetType)) enum DataTypeEnum Type;
_variant_t GetValue( );
void PutValue( const _variant_t & pval );
__declspec(property(get=GetValue,put=PutValue)) _variant_t Value;
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈