Amazon.Redshift.Model.Internal.MarshallTransformations.CreateSnapshotCopyGrantResponseUnmarshaller.UnmarshallResult C# (CSharp) Méthode

UnmarshallResult() private static méthode

private static UnmarshallResult ( Amazon.Runtime.Internal.Transform.XmlUnmarshallerContext context, CreateSnapshotCopyGrantResponse response ) : void
context Amazon.Runtime.Internal.Transform.XmlUnmarshallerContext
response Amazon.Redshift.Model.CreateSnapshotCopyGrantResponse
Résultat void
        private static void UnmarshallResult(XmlUnmarshallerContext context, CreateSnapshotCopyGrantResponse response)
        {
            
            int originalDepth = context.CurrentDepth;
            int targetDepth = originalDepth + 1;
            
            if (context.IsStartOfDocument) 
               targetDepth += 2;
            
            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {

                    if (context.TestExpression("SnapshotCopyGrant", targetDepth))
                    {
                        var unmarshaller = SnapshotCopyGrantUnmarshaller.Instance;
                        response.SnapshotCopyGrant = unmarshaller.Unmarshall(context);
                        continue;
                    }
                } 
           }

            return;
        }