File: MS\Internal\Automation\AutomationPatternInfo.cs
Project: wpf\src\UIAutomation\UIAutomationClient\UIAutomationClient.csproj (UIAutomationClient)
//---------------------------------------------------------------------------
//
// <copyright file="AutomationPatternInfo.cs" company="Microsoft">
//    Copyright (C) Microsoft Corporation.  All rights reserved.
// </copyright>
// 
//
// Description: class containing information about an automation property
//
// History:  
//  06/04/2003 : BrendanM Ported to WCP
//
//---------------------------------------------------------------------------
 
using System;
using System.Windows.Automation;
 
namespace MS.Internal.Automation
{
    // struct containing information about an automation property
    internal delegate object WrapObjectClientSide(AutomationElement el, SafePatternHandle hPattern, bool cached);
 
    internal class AutomationPatternInfo
    {
        //------------------------------------------------------
        //
        //  Constructors
        //
        //------------------------------------------------------
 
        #region Constructors
 
        public AutomationPatternInfo( 
            AutomationPattern id,
            AutomationProperty [ ] properties,
            WrapObjectClientSide clientSideWrapper )
        {
            _id = id;
            _properties = properties;
            _clientSideWrapper = clientSideWrapper;
        }
 
        #endregion Constructors
 
        //------------------------------------------------------
        //
        //  Internal Properties
        //
        //------------------------------------------------------
 
        #region Internal Properties
 
        internal AutomationPattern         ID                    { get { return _id; } }
        internal AutomationProperty [ ]    Properties            { get { return _properties; } }
        internal WrapObjectClientSide      ClientSideWrapper     { get { return _clientSideWrapper; } }
        
        #endregion Internal Properties
 
 
        //------------------------------------------------------
        //
        //  Private Fields
        //
        //------------------------------------------------------
 
        #region Private Fields
 
        private AutomationPattern _id;
        private AutomationProperty [ ] _properties;
        private WrapObjectClientSide _clientSideWrapper;
        
        #endregion Private Fields
    }
}