path パラメーターおよび outputDirectory パラメーターが実在の場所を示しているかどうかを検証します。
名前空間: Microsoft.VisualStudio.TestTools.Common
アセンブリ: Microsoft.VisualStudio.QualityTools.Common (Microsoft.VisualStudio.QualityTools.Common.dll 内)
構文
'宣言
Public Shared Function CheckDeploymentItem ( _
path As String, _
outputDirectory As String, _
<OutAttribute> ByRef errorMessage As String _
) As Boolean
public static bool CheckDeploymentItem(
string path,
string outputDirectory,
out string errorMessage
)
public:
static bool CheckDeploymentItem(
String^ path,
String^ outputDirectory,
[OutAttribute] String^% errorMessage
)
static member CheckDeploymentItem :
path:string *
outputDirectory:string *
errorMessage:string byref -> bool
public static function CheckDeploymentItem(
path : String,
outputDirectory : String,
errorMessage : String
) : boolean
パラメーター
- path
型: System.String
項目の場所を示す string。
- outputDirectory
型: System.String
テスト出力のパスを示す string。このパラメーターの値は、path パラメーターの値に対する相対パスです。
- errorMessage
型: System.String%
項目が存在しない場合に出力されるエラー メッセージを含んだ string。
戻り値
型: System.Boolean
パラメーターが有効な場合は true。それ以外の場合は false。
解説
項目が存在しない場合、例外をスローしません。 errorMessage パラメーターの値は、検証が失敗した理由を示します。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。