共用方式為


PropertyPageTypeConverterAttribute Class

The class representing the attribute describing how to convert property values on property pages in a package. Use this attribute rather than TypeConverterAttribute.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'宣告
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Enum Or AttributeTargets.Property Or AttributeTargets.Field)> _
Public NotInheritable Class PropertyPageTypeConverterAttribute _
    Inherits Attribute
'用途
Dim instance As PropertyPageTypeConverterAttribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Enum|AttributeTargets.Property|AttributeTargets.Field)]
public sealed class PropertyPageTypeConverterAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Enum|AttributeTargets::Property|AttributeTargets::Field)]
public ref class PropertyPageTypeConverterAttribute sealed : public Attribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Enum|AttributeTargets.Property|AttributeTargets.Field)>]
type PropertyPageTypeConverterAttribute =  
    class
        inherit Attribute
    end
public final class PropertyPageTypeConverterAttribute extends Attribute

Remarks

The Visual Studio package code looks for this attribute, rather than TypeConverterAttribute, to perform type conversion of properties on property pages.

For examples of the attribute in use, see the StructuresEnums.cs project source file.

For information about implementing type converters, see How to: Implement a Type Converter. For more general information about attributes and metadata, see Extending Metadata Using Attributes and Extending Metadata Using Attributes.

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.VisualStudio.Shell.PropertyPageTypeConverterAttribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

PropertyPageTypeConverterAttribute Members

Microsoft.VisualStudio.Shell Namespace