Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Adds the specified file to the project item file collection.
Namespace: Microsoft.VisualStudio.SharePoint
Assembly: Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Function AddFromFile ( _
fileName As String _
) As ISharePointProjectItemFile
ISharePointProjectItemFile AddFromFile(
string fileName
)
Parameters
fileName
Type: StringThe file name to be added. It should be a path to the file inside of the SharePoint project item folder.
Return Value
Type: Microsoft.VisualStudio.SharePoint.ISharePointProjectItemFile
The project item file added to the collection.
.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.