共用方式為


StyleKey<T> Class

Simple derivation of ResourceKey, templated to allow the overridden Assembly property to return the correct assembly based on typeof(T).

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'宣告
Public NotInheritable Class StyleKey(Of T) _
    Inherits ResourceKey
'用途
Dim instance As StyleKey(Of T)
public sealed class StyleKey<T> : ResourceKey
generic<typename T>
public ref class StyleKey sealed : public ResourceKey
[<SealedAttribute>]
type StyleKey<'T> =  
    class
        inherit ResourceKey
    end
JScript does not support generic types or methods.

Type Parameters

  • T
    The type with which this StyleKey is associated with.

Inheritance Hierarchy

System.Object
  System.Windows.Markup.MarkupExtension
    System.Windows.ResourceKey
      Microsoft.VisualStudio.PlatformUI.StyleKey<T>

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

StyleKey<T> Members

Microsoft.VisualStudio.PlatformUI Namespace