特定のモニカーと論理ビューのドキュメントには、現在開かれているかどうかを示すブール値を取得します。
名前空間: Microsoft.VisualStudio.Data
アセンブリ: Microsoft.VisualStudio.Data (Microsoft.VisualStudio.Data.dll 内)
構文
'宣言
Public Function IsDocumentOpen ( _
documentMoniker As String, _
logicalView As Guid _
) As Boolean
public bool IsDocumentOpen(
string documentMoniker,
Guid logicalView
)
public:
bool IsDocumentOpen(
String^ documentMoniker,
Guid logicalView
)
member IsDocumentOpen :
documentMoniker:string *
logicalView:Guid -> bool
public function IsDocumentOpen(
documentMoniker : String,
logicalView : Guid
) : boolean
パラメーター
- documentMoniker
型 : System.String
ドキュメントのモニカー。
- logicalView
型 : System.Guid
論理ビューの一意の識別子。
戻り値
型 : System.Boolean
指定されたドキュメントが開かれている場合はを返します true ; それ falseを返します。
例外
| 例外 | 条件 |
|---|---|
| ArgumentNullException | documentMoniker パラメーターが null です。 |
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。