SetResourceContents 메서드
Sets the contents of a resource.
네임스페이스: ReportService2005
어셈블리: ReportService2005.dll의 ReportService2005
구문
‘선언
<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 _
)
‘사용 방법
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
)
매개 변수
- Resource
형식: System. . :: . .String
The full path name of the resource.
- Contents
형식: array<System. . :: . .Byte> [] () [] []
The contents of a resource in the form of a byte array.
- MimeType
형식: System. . :: . .String
Optional. The MIME type of the resource.
주의
A SOAP exception is thrown with the error code rsMissingParameter if the value of the Contents parameter is set to null Nothing nullptr unit null 참조(Visual Basic에서는 Nothing) (Nothing in Visual Basic).
The report server does not validate the value of the MimeType parameter.