Uri.UriSchemeNews Field
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.
Specifies that the URI is an Internet news group and is accessed through the Network News Transport Protocol (NNTP). This field is read-only.
public: static initonly System::String ^ UriSchemeNews;
public static readonly string UriSchemeNews;
staticval mutable UriSchemeNews : string
Public Shared ReadOnly UriSchemeNews As String
Field Value
Examples
The following example creates a Uri instance and determines whether the scheme is UriSchemeNews.
Uri^ address4 = gcnew Uri( "news:123456@contoso.com" );
if ( address4->Scheme == Uri::UriSchemeNews )
{
Console::WriteLine( "Uri is an Internet news group" );
}
Uri address4 = new Uri("news:123456@contoso.com");
if (address4.Scheme == Uri.UriSchemeNews)
Console.WriteLine("Uri is an Internet news group");
let address4 = Uri "news:123456@contoso.com"
if address4.Scheme = Uri.UriSchemeNews then
printfn $"Uri is an Internet news group"
Dim address4 As New Uri("news:123456@contoso.com")
If address4.Scheme = Uri.UriSchemeNews Then
Console.WriteLine("Uri is an Internet news group")
End If
Applies to
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา