Amazon.S3.Model.Internal.MarshallTransformations.GetBucketPolicyResponseUnmarshaller.UnmarshallResult C# (CSharp) Метод

UnmarshallResult() приватный статический Метод

private static UnmarshallResult ( Amazon.Runtime.Internal.Transform.XmlUnmarshallerContext context, Amazon.S3.Model.GetBucketPolicyResponse response ) : void
context Amazon.Runtime.Internal.Transform.XmlUnmarshallerContext
response Amazon.S3.Model.GetBucketPolicyResponse
Результат void
        private static void UnmarshallResult(XmlUnmarshallerContext context,GetBucketPolicyResponse response)
        {
            using (System.IO.StreamReader reader = new System.IO.StreamReader(context.Stream))
            {
                response.Policy = reader.ReadToEnd();
                if (response.Policy.StartsWith("<?xml", StringComparison.OrdinalIgnoreCase))
                    response.Policy = null;
            }

            return;
        }