コード例 #1
0
 /// <summary>
 /// Uses regular expressions for finding a YouTube video ID in the string.
 /// </summary>
 /// <param name="subject">The string to search.</param>
 /// <param name="videoId">The YouTube video ID if found, otherwise <var>NULL</var>.</param>
 /// <returns>Returns <var>TRUE</var> if a video ID is found, otherwise <var>FALSE</var>.</returns>
 public static bool GetYouTubeId(this string subject, out string videoId)
 {
     return(YouTubeHelpers.GetIdFromString(subject, out videoId));
 }
コード例 #2
0
 /// <summary>
 /// Uses regular expressions for finding a YouTube video ID in the string.
 /// </summary>
 /// <param name="subject">The string to search.</param>
 /// <returns>The YouTube video ID if found, otherwise <var>NULL</var>.</returns>
 public static string GetYouTubeId(this string subject)
 {
     return(YouTubeHelpers.GetIdFromString(subject));
 }