UrlSyndicationContent Constructors
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.
Initializes a new instance of the UrlSyndicationContent class.
Overloads
UrlSyndicationContent(UrlSyndicationContent) |
Initializes a new instance of the UrlSyndicationContent class with the specified UrlSyndicationContent instance. |
UrlSyndicationContent(Uri, String) |
Initializes a new instance of the UrlSyndicationContent class with the specified Uri and media type. |
UrlSyndicationContent(UrlSyndicationContent)
- Source:
- UrlSyndicationContent.cs
- Source:
- UrlSyndicationContent.cs
- Source:
- UrlSyndicationContent.cs
- Source:
- UrlSyndicationContent.cs
Initializes a new instance of the UrlSyndicationContent class with the specified UrlSyndicationContent instance.
protected:
UrlSyndicationContent(System::ServiceModel::Syndication::UrlSyndicationContent ^ source);
protected UrlSyndicationContent (System.ServiceModel.Syndication.UrlSyndicationContent source);
new System.ServiceModel.Syndication.UrlSyndicationContent : System.ServiceModel.Syndication.UrlSyndicationContent -> System.ServiceModel.Syndication.UrlSyndicationContent
Protected Sub New (source As UrlSyndicationContent)
Parameters
- source
- UrlSyndicationContent
The UrlSyndicationContent instance.
Applies to
UrlSyndicationContent(Uri, String)
- Source:
- UrlSyndicationContent.cs
- Source:
- UrlSyndicationContent.cs
- Source:
- UrlSyndicationContent.cs
- Source:
- UrlSyndicationContent.cs
Initializes a new instance of the UrlSyndicationContent class with the specified Uri and media type.
public:
UrlSyndicationContent(Uri ^ url, System::String ^ mediaType);
public UrlSyndicationContent (Uri url, string mediaType);
new System.ServiceModel.Syndication.UrlSyndicationContent : Uri * string -> System.ServiceModel.Syndication.UrlSyndicationContent
Public Sub New (url As Uri, mediaType As String)
Parameters
Examples
The following example demonstrates how to call this constructor.
UrlSyndicationContent urlContent = new UrlSyndicationContent(new Uri("http://localhost/content"), "text/html");
Dim urlContent As UrlSyndicationContent = New UrlSyndicationContent(New Uri("http://localhost/content"), "text/html")
Remarks
The media type parameter can be set to any known MIME type value as defined in RFC 2046.