Uri.UriSchemeNntp 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 ^ UriSchemeNntp;
public static readonly string UriSchemeNntp;
staticval mutable UriSchemeNntp : string
Public Shared ReadOnly UriSchemeNntp As String
Field Value
Examples
The following example creates a Uri instance and determines whether the scheme is UriSchemeNntp.
Uri^ address5 = gcnew Uri( "nntp://news.contoso.com/123456@contoso.com" );
if ( address5->Scheme == Uri::UriSchemeNntp )
{
Console::WriteLine( "Uri is nntp protocol" );
}
Uri address5 = new Uri("nntp://news.contoso.com/123456@contoso.com");
if (address5.Scheme == Uri.UriSchemeNntp)
Console.WriteLine("Uri is nntp protocol");
let address5 = Uri "nntp://news.contoso.com/123456@contoso.com"
if address5.Scheme = Uri.UriSchemeNntp then
printfn "Uri is nntp protocol"
Dim address5 As New Uri("nntp://news.contoso.com/123456@contoso.com")
If address5.Scheme = Uri.UriSchemeNntp Then
Console.WriteLine("Uri is nntp protocol")
End If
Remarks
The NNTP Uri parsing errors in .NET Framework version 1.1 have been corrected.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.