WebContext.Site Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the name of the current Web application.
public:
property System::String ^ Site { System::String ^ get(); };
public string Site { get; }
member this.Site : string
Public ReadOnly Property Site As String
Property Value
The name of the current Web application.
Examples
The following example shows how to use the Site property. This code example is part of a larger example provided for the WebContext class.
// WebContext - Site.
Console.WriteLine("Site: {0}", webContext.Site.ToString());
' WebContext - Site.
Console.WriteLine("Site: {0}", webContext.Site.ToString())
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.