check if URI is valid in ArticleImage

This commit is contained in:
2014-01-18 00:01:16 +01:00
parent ef20ae9975
commit 06dfa68323
+11
View File
@@ -38,5 +38,16 @@ namespace ReadSharp
/// The alternative text. /// The alternative text.
/// </value> /// </value>
public string AlternativeText { get; set; } public string AlternativeText { get; set; }
/// <summary>
/// Gets a value indicating whether [is valid URI].
/// </summary>
/// <value>
/// <c>true</c> if [is valid URI]; otherwise, <c>false</c>.
/// </value>
public bool IsValidUri
{
get { return Uri != null && Uri.IsWellFormedUriString(Uri.ToString(), UriKind.Absolute); }
}
} }
} }