2013-06-07 2 views
0

나는 youtube 업로드 소프트웨어를 쓰고 있습니다. 사실 제 질문은 여기에 일반적입니다.Google.GData.Client.GDataRequestException을 읽는 방법

Google.GData.Client이 예외입니다. 하지만 쓰려면 어떻게해야할지 모르겠다.

내가 어떻게 액세스합니까? 나는 E.으로 시도하지만이 Google.Gdata

내가 Google.GData.Client.GDataRequestException.ResponceString 액세스 할 필요가 없습니다

당신의 유형을 지정하여 catch 절을 변경해야 enter image description here

답변

2

예외 (귀하의 경우, Google.GData.Client.GDataRequestException)를 사용하여 회원에 액세스 할 수 있습니다.

catch (Google.GData.Client.GDataRequestException ex) 
{ 
    Console.WriteLine(ex.ResponseString); 
} 
0
try { 
// your GDataRequest code goes here 
} catch (GDataRequestException e) { 
    // your error code goes here 
}