DataViewHierarchyAccessor.ActivateDocumentIfOpen メソッド (String)

ドキュメントが開いている場合は、指定されたモニカーのドキュメントをアクティブにします。

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

構文

'宣言
Public Function ActivateDocumentIfOpen ( _
    documentMoniker As String _
) As Boolean
public bool ActivateDocumentIfOpen(
    string documentMoniker
)
public:
bool ActivateDocumentIfOpen(
    String^ documentMoniker
)
member ActivateDocumentIfOpen : 
        documentMoniker:string -> bool 
public function ActivateDocumentIfOpen(
    documentMoniker : String
) : boolean

パラメーター

  • documentMoniker
    型 : System.String
    アクティブにするドキュメントのモニカー。

戻り値

型 : System.Boolean
ドキュメントが開かれている場合はを返します true ; それ falseを返します。

例外

例外 条件
ArgumentNullException

documentMoniker パラメーターが null です。

.NET Framework セキュリティ

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

参照

関連項目

DataViewHierarchyAccessor クラス

ActivateDocumentIfOpen オーバーロード

Microsoft.VisualStudio.Data 名前空間