更新 : 2007 年 11 月
Web サイト プロジェクトに新しい ProjectItem を作成します。
名前空間 : VsWebSite
アセンブリ : VsWebSite.Interop (VsWebSite.Interop.dll 内)
構文
'宣言
Function AddFromTemplate ( _
bstrRelFolderUrl As String, _
bstrWizardName As String, _
bstrLanguage As String, _
bstrItemName As String, _
bUseCodeSeparation As Boolean, _
bstrMasterPage As String, _
bstrDocType As String _
) As ProjectItem
'使用
Dim instance As VSWebSite
Dim bstrRelFolderUrl As String
Dim bstrWizardName As String
Dim bstrLanguage As String
Dim bstrItemName As String
Dim bUseCodeSeparation As Boolean
Dim bstrMasterPage As String
Dim bstrDocType As String
Dim returnValue As ProjectItem
returnValue = instance.AddFromTemplate(bstrRelFolderUrl, _
bstrWizardName, bstrLanguage, bstrItemName, _
bUseCodeSeparation, bstrMasterPage, _
bstrDocType)
ProjectItem AddFromTemplate(
string bstrRelFolderUrl,
string bstrWizardName,
string bstrLanguage,
string bstrItemName,
bool bUseCodeSeparation,
string bstrMasterPage,
string bstrDocType
)
ProjectItem^ AddFromTemplate(
[InAttribute] String^ bstrRelFolderUrl,
[InAttribute] String^ bstrWizardName,
[InAttribute] String^ bstrLanguage,
[InAttribute] String^ bstrItemName,
[InAttribute] bool bUseCodeSeparation,
[InAttribute] String^ bstrMasterPage,
[InAttribute] String^ bstrDocType
)
function AddFromTemplate(
bstrRelFolderUrl : String,
bstrWizardName : String,
bstrLanguage : String,
bstrItemName : String,
bUseCodeSeparation : boolean,
bstrMasterPage : String,
bstrDocType : String
) : ProjectItem
パラメータ
bstrRelFolderUrl
型 : System.StringProjectItem オブジェクトの作成先となるフォルダの相対 URL。このパラメータに nullnull 参照 (Visual Basic では Nothing) または空の文字列を指定した場合は、プロジェクトのルートに項目が追加されます。
bstrWizardName
型 : System.StringProjectItem オブジェクトの作成に使用するテンプレートの名前。
bstrLanguage
型 : System.StringProjectItem オブジェクトのコードの言語 ("C#"、"VB" など)。
bstrItemName
型 : System.Stringプロジェクトに追加する ProjectItem オブジェクトの名前。
bUseCodeSeparation
型 : System.Boolean分離コード モデルを使用するかどうかを示すブール値。このパラメータは、プロジェクトが分離コード ファイルをサポートしている場合にのみ使用されます。それ以外の場合は無視されます。
bstrMasterPage
型 : System.Stringマスタ ページおよび (該当する場合) テンプレートをサポートするプロジェクトのマスタ ページの相対パスと名前。それ以外の場合、このパラメータは無視されます。
bstrDocType
型 : System.String使用されていません。
戻り値
ProjectItem オブジェクト。
アクセス許可
- 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。