Share via


SPSolution.SolutionFile property

Returns the file associated with the solution.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Property SolutionFile As SPPersistedFile
    Get
'Usage
Dim instance As SPSolution
Dim value As SPPersistedFile

value = instance.SolutionFile
public SPPersistedFile SolutionFile { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPPersistedFile
An SPPersistedFileobject that represents the solution file.

Remarks

The name of the solution is set to the filename when you first add the solution to the store. If you subsequently upgrade the solution with a different file, the SolutionFile property gets updated but the Name property remains the same.

See also

Reference

SPSolution class

SPSolution members

Microsoft.SharePoint.Administration namespace