Partager via


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.String

    The source location for the virtual file.

Return Value

Type: Microsoft.VisualStudio.SharePoint.ISharePointProjectItemVirtualFile
An instance of ISharePointProjectItemVirtualFile created with the provided arguments.

.NET Framework Security

See Also

Reference

ISharePointProjectItemVirtualFileCollection Interface

Microsoft.VisualStudio.SharePoint Namespace