Partager via


WebSiteProperties.CurrentWebsiteLanguage Property

Gets or sets the name of the current code language for the Web site project.

Namespace:  VsWebSite
Assembly:  VsWebSite.Interop (in VsWebSite.Interop.dll)

Syntax

'Declaration
Property CurrentWebsiteLanguage As String
string CurrentWebsiteLanguage { get; set; }
property String^ CurrentWebsiteLanguage {
    String^ get ();
    void set (String^ value);
}
abstract CurrentWebsiteLanguage : string with get, set
function get CurrentWebsiteLanguage () : String 
function set CurrentWebsiteLanguage (value : String)

Property Value

Type: System.String
The name of the code language for the Web site, such as "VB" or "C#".

Remarks

If the user changes the language in the Add New Item dialog box, the value of this property changes accordingly.

Note

Starting with Visual Studio 2005, Web site projects can have files in various languages, so this property is no longer of any value.

Examples

For an example of reading and setting late-bound properties, see WebSiteProperties.

.NET Framework Security

See Also

Reference

WebSiteProperties Interface

VsWebSite Namespace

EnvDTE

WebSiteProperties

Other Resources

Referencing Automation Assemblies and the DTE2 Object