ReportingService2005.SetResourceContents Yöntemi
Bir kaynak içeriğini ayarlar.
Ad Alanı: ReportService2005
Derleme: ReportService2005 (ReportService2005 içinde.dll)
Sözdizimi
'Bildirim
<SoapHeaderAttribute("BatchHeaderValue")> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetResourceContents", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", _
ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub SetResourceContents ( _
Resource As String, _
Contents As Byte(), _
MimeType As String _
)
'Kullanım
Dim instance As ReportingService2005
Dim Resource As String
Dim Contents As Byte()
Dim MimeType As String
instance.SetResourceContents(Resource, _
Contents, MimeType)
[SoapHeaderAttribute("BatchHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetResourceContents", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void SetResourceContents(
string Resource,
byte[] Contents,
string MimeType
)
[SoapHeaderAttribute(L"BatchHeaderValue")]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetResourceContents", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
public:
void SetResourceContents(
String^ Resource,
array<unsigned char>^ Contents,
String^ MimeType
)
[<SoapHeaderAttribute("BatchHeaderValue")>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetResourceContents", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
member SetResourceContents :
Resource:string *
Contents:byte[] *
MimeType:string -> unit
public function SetResourceContents(
Resource : String,
Contents : byte[],
MimeType : String
)
Parametreler
- Resource
Tür: System.String
Tam yol adını kaynak.
- Contents
Tür: array<System.Byte[]
Bir bayt dizisi şeklindeki kaynak içeriğini.
- MimeType
Tür: System.String
İsteğe bağlı.Kaynak MIME türü.
Açıklamalar
Aşağıdaki tablo üstbilgi ve izinler bu işlemi gösterir.
soap üstbilgileri |
(De)BatchHeaderValue (Giden)ServerInfoHeaderValue |
Gerekli izinler |
Hata koduyla bir soap özel durum rsMissingParameter , değerini Contents parametresi küme nullnull başvuru (Visual Basic'te Nothing) (hiçbir şey Visual Basic).
Rapor sunucusu değerini doğrulamak MimeType parametresi.