Description
The ViewUrl
property provides the URL to the package's page for viewing or linking. This property is part of the Sandbox.Project
class and is used to access the web page associated with the project package, allowing users to view or share the package details online.
Usage
To access the ViewUrl
property, you need to have an instance of the Sandbox.Project
class. This property is read-only and returns a string
representing the URL.
Note that this property is decorated with the JsonIgnore
attribute, which means it will not be serialized or deserialized when using JSON serialization.
Example
// Assuming 'project' is an instance of Sandbox.Project
string viewUrl = project.ViewUrl;
// Use the URL to open the package page in a web browser
System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo
{
FileName = viewUrl,
UseShellExecute = true
});