ISharePointProjectItemCollection.Add メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
Add(String, String) |
SharePoint プロジェクト アイテムの新しいインスタンスを作成および追加します。 |
Add(String, String, Boolean) |
SharePoint プロジェクト アイテムの新しいインスタンスを作成および追加します。 |
Add(String, String, String) |
SharePoint プロジェクト アイテムの新しいインスタンスを作成および追加します。 |
Add(String, String, String, Boolean) |
SharePoint プロジェクト アイテムを作成してプロジェクトに追加します。 |
Add(String, String)
SharePoint プロジェクト アイテムの新しいインスタンスを作成および追加します。
public:
Microsoft::VisualStudio::SharePoint::ISharePointProjectItem ^ Add(System::String ^ name, System::String ^ projectItemType);
public Microsoft.VisualStudio.SharePoint.ISharePointProjectItem Add (string name, string projectItemType);
abstract member Add : string * string -> Microsoft.VisualStudio.SharePoint.ISharePointProjectItem
Public Function Add (name As String, projectItemType As String) As ISharePointProjectItem
パラメーター
- name
- String
追加する SharePoint プロジェクト アイテムの名前。
- projectItemType
- String
追加する SharePoint プロジェクト アイテムの種類 ID。
戻り値
追加された SharePoint プロジェクト アイテムのインスタンス。
例外
引数のいずれかが null
である場合に発生します。
次の場合に発生します。いずれかのパラメーターが空の文字列である場合。指定された名前の SharePoint プロジェクト アイテムが既に存在する場合。
適用対象
Add(String, String, Boolean)
SharePoint プロジェクト アイテムの新しいインスタンスを作成および追加します。
public:
Microsoft::VisualStudio::SharePoint::ISharePointProjectItem ^ Add(System::String ^ name, System::String ^ projectItemType, bool skipAutoPackage);
public Microsoft.VisualStudio.SharePoint.ISharePointProjectItem Add (string name, string projectItemType, bool skipAutoPackage);
abstract member Add : string * string * bool -> Microsoft.VisualStudio.SharePoint.ISharePointProjectItem
Public Function Add (name As String, projectItemType As String, skipAutoPackage As Boolean) As ISharePointProjectItem
パラメーター
- name
- String
追加する SharePoint プロジェクト アイテムの名前。
- projectItemType
- String
追加する SharePoint プロジェクト アイテムの種類 ID。
- skipAutoPackage
- Boolean
true
の場合は、最初の使用可能な機能に自動追加をスキップします。
戻り値
追加された SharePoint プロジェクト アイテムのインスタンス。
例外
引数のいずれかが null
である場合に発生します。
次の場合に発生します。いずれかのパラメーターが空の文字列である場合。指定された名前の SharePoint プロジェクト アイテムが既に存在する場合。
適用対象
Add(String, String, String)
SharePoint プロジェクト アイテムの新しいインスタンスを作成および追加します。
public:
Microsoft::VisualStudio::SharePoint::ISharePointProjectItem ^ Add(System::String ^ path, System::String ^ name, System::String ^ projectItemType);
public Microsoft.VisualStudio.SharePoint.ISharePointProjectItem Add (string path, string name, string projectItemType);
abstract member Add : string * string * string -> Microsoft.VisualStudio.SharePoint.ISharePointProjectItem
Public Function Add (path As String, name As String, projectItemType As String) As ISharePointProjectItem
パラメーター
- path
- String
新しい SharePoint アイテムが作成されるプロジェクト内のサブフォルダー。
- name
- String
追加される SharePoint プロジェクト アイテムの名前。
- projectItemType
- String
追加される SharePoint プロジェクト アイテムの種類 ID。
戻り値
追加された SharePoint プロジェクト アイテムのインスタンス。
例外
引数のいずれかが null
である場合に発生します。
次の場合に発生します。いずれかのパラメーターが空の文字列である場合。パスが有効な絶対パスでない場合 (つまり、プロジェクト ルート パスの下にありません)。指定された名前の SharePoint プロジェクト アイテムが既に存在する場合。
適用対象
Add(String, String, String, Boolean)
SharePoint プロジェクト アイテムを作成してプロジェクトに追加します。
public:
Microsoft::VisualStudio::SharePoint::ISharePointProjectItem ^ Add(System::String ^ path, System::String ^ name, System::String ^ projectItemType, bool skipAutoPackage);
public Microsoft.VisualStudio.SharePoint.ISharePointProjectItem Add (string path, string name, string projectItemType, bool skipAutoPackage);
abstract member Add : string * string * string * bool -> Microsoft.VisualStudio.SharePoint.ISharePointProjectItem
Public Function Add (path As String, name As String, projectItemType As String, skipAutoPackage As Boolean) As ISharePointProjectItem
パラメーター
- path
- String
プロジェクト アイテムの基本パス。 プロジェクト パスに対して相対または絶対にすることができます。
- name
- String
プロジェクト項目の名前。 名前はファイル システム フレンドリーである必要があります。
- projectItemType
- String
プロジェクト アイテムの種類。
- skipAutoPackage
- Boolean
true
の場合、プロジェクト システムはプロジェクト アイテムの機能やパッケージを自動的に追加しません。
戻り値
新しいプロジェクト アイテムのインスタンス。
例外
引数のいずれかが null
である場合に発生します。
次の場合に発生します。いずれかのパラメーターが空の文字列である場合。パスが有効な絶対パスでない場合 (つまり、プロジェクト ルート パスの下にありません)。指定された名前の SharePoint プロジェクト アイテムが既に存在する場合。