共用方式為


ServerDocument.SolutionId Property

Gets a GUID that the Visual Studio Tools for Office runtime uses to identify the solution.

Namespace:  Microsoft.VisualStudio.Tools.Applications
Assembly:  Microsoft.VisualStudio.Tools.Applications.ServerDocument (in Microsoft.VisualStudio.Tools.Applications.ServerDocument.dll)

Syntax

'Declaration
Public ReadOnly Property SolutionId As Guid
public Guid SolutionId { get; }

Property Value

Type: System.Guid
A GUID that the Visual Studio Tools for Office runtime uses to identify the solution.

Remarks

The value of the SolutionId property is the same GUID that is specified in the solutionId attribute of the vstov4:document element in the application manifest for the solution. For more information, see Application and Deployment Manifests in Office Solutions and <document> Element (Office Development in Visual Studio).

.NET Framework Security

See Also

Reference

ServerDocument Class

Microsoft.VisualStudio.Tools.Applications Namespace

Other Resources

Application and Deployment Manifests in Office Solutions