ISharePointProjectItemVirtualFileCollection.Add Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Adds a new virtual file.
Namespace: Microsoft.VisualStudio.SharePoint
Assembly: Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Function Add ( _
source As String, _
deploymentType As DeploymentType _
) As ISharePointProjectItemVirtualFile
ISharePointProjectItemVirtualFile Add(
string source,
DeploymentType deploymentType
)
Parameters
source
Type: System.StringThe source location for the virtual file.
deploymentType
Type: Microsoft.VisualStudio.SharePoint.DeploymentTypeThe deployment type.
Return Value
Type: Microsoft.VisualStudio.SharePoint.ISharePointProjectItemVirtualFile
An instance of ISharePointProjectItemVirtualFile created with the provided arguments.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.