次の方法で共有


SessionStoreCache.GetSessionStore メソッド

指定されたキーによって識別されるストアを取得します。キーが見つからない場合は null を返します。

名前空間:  Microsoft.VisualStudio.TextTemplating.Modeling
アセンブリ:  Microsoft.VisualStudio.TextTemplating.Modeling.10.0 (Microsoft.VisualStudio.TextTemplating.Modeling.10.0.dll 内)

構文

'宣言
Public Shared Function GetSessionStore ( _
    storeKey As String _
) As Store
public static Store GetSessionStore(
    string storeKey
)
public:
static Store^ GetSessionStore(
    String^ storeKey
)
static member GetSessionStore : 
        storeKey:string -> Store 
public static function GetSessionStore(
    storeKey : String
) : Store

パラメーター

  • storeKey
    型: System.String
    ストアを識別する文字列。

戻り値

型: Microsoft.VisualStudio.Modeling.Store
storeKey によって識別されたストア。キーが見つからなかった場合は null。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

SessionStoreCache クラス

Microsoft.VisualStudio.TextTemplating.Modeling 名前空間