Revision | 117 (tree) |
---|---|
Zeit | 2018-06-17 02:58:18 |
Autor | sebastiandotnet |
- update MSDATASRC (complete)
@@ -1,128 +0,0 @@ | ||
1 | -using System; | |
2 | -using System.Reflection; | |
3 | -using NetOffice; | |
4 | -using NetOffice.Attributes; | |
5 | - | |
6 | -namespace MSDATASRCApi.Utils | |
7 | -{ | |
8 | - #pragma warning disable | |
9 | - /// <summary> | |
10 | - /// Necessary factory info, used from NetOffice.Core while Initialize() | |
11 | - /// </summary> | |
12 | - public class ProjectInfo : IFactoryInfo | |
13 | - { | |
14 | - #region Fields | |
15 | - | |
16 | - private string _name; | |
17 | - private string _namespace = "NetOffice.MSDATASRCApi"; | |
18 | - private Guid[] _componentGuid = new Guid[]{new Guid("7C0FFAB0-CD84-11D0-949A-00A0C91110ED")}; | |
19 | - private Assembly _assembly; | |
20 | - private NetOfficeAssemblyAttribute _assemblyAttribute; | |
21 | - private Type[] _exportedTypes; | |
22 | - private string[] _dependents; | |
23 | - | |
24 | - #endregion | |
25 | - | |
26 | - #region Ctor | |
27 | - | |
28 | - public ProjectInfo() | |
29 | - { | |
30 | - _assembly = typeof(ProjectInfo).Assembly; | |
31 | - _assemblyAttribute = _assembly.GetCustomAttributes(typeof(NetOfficeAssemblyAttribute), true)[0] as NetOfficeAssemblyAttribute; | |
32 | - _name = _assembly.GetName().Name; | |
33 | - } | |
34 | - | |
35 | - #endregion | |
36 | - | |
37 | - #region IFactoryInfo | |
38 | - | |
39 | - public string AssemblyName | |
40 | - { | |
41 | - get | |
42 | - { | |
43 | - return _name; | |
44 | - } | |
45 | - } | |
46 | - | |
47 | - public string AssemblyNamespace | |
48 | - { | |
49 | - get | |
50 | - { | |
51 | - return _namespace; | |
52 | - } | |
53 | - } | |
54 | - | |
55 | - public Guid[] ComponentGuid | |
56 | - { | |
57 | - get | |
58 | - { | |
59 | - return _componentGuid; | |
60 | - } | |
61 | - } | |
62 | - | |
63 | - public Assembly Assembly | |
64 | - { | |
65 | - get | |
66 | - { | |
67 | - return _assembly; | |
68 | - } | |
69 | - } | |
70 | - | |
71 | - public NetOfficeAssemblyAttribute AssemblyAttribute | |
72 | - { | |
73 | - get | |
74 | - { | |
75 | - return _assemblyAttribute; | |
76 | - } | |
77 | - } | |
78 | - | |
79 | - public string[] Dependencies | |
80 | - { | |
81 | - get | |
82 | - { | |
83 | - if(null == _dependents) | |
84 | - _dependents = new string[0]; | |
85 | - return _dependents; | |
86 | - } | |
87 | - } | |
88 | - | |
89 | - public bool IsDuck | |
90 | - { | |
91 | - get | |
92 | - { | |
93 | - return false; | |
94 | - } | |
95 | - } | |
96 | - | |
97 | - public bool Contains(Type type) | |
98 | - { | |
99 | - if (null == _exportedTypes) | |
100 | - _exportedTypes = Assembly.GetExportedTypes(); | |
101 | - | |
102 | - foreach (Type item in _exportedTypes) | |
103 | - { | |
104 | - if (item == type) | |
105 | - return true; | |
106 | - } | |
107 | - | |
108 | - return false; | |
109 | - } | |
110 | - | |
111 | - public bool Contains(string className) | |
112 | - { | |
113 | - if (null == _exportedTypes) | |
114 | - _exportedTypes = Assembly.GetExportedTypes(); | |
115 | - | |
116 | - foreach (Type item in _exportedTypes) | |
117 | - { | |
118 | - if (item.Name.EndsWith(className, StringComparison.InvariantCultureIgnoreCase)) | |
119 | - return true; | |
120 | - } | |
121 | - | |
122 | - return false; | |
123 | - } | |
124 | - | |
125 | - #endregion | |
126 | - } | |
127 | - #pragma warning restore | |
128 | -} |
@@ -0,0 +1,120 @@ | ||
1 | +using System; | |
2 | +using NetRuntimeSystem = System; | |
3 | +using System.ComponentModel; | |
4 | +using NetOffice.Attributes; | |
5 | +using NetOffice.MSDATASRCApi; | |
6 | + | |
7 | +namespace NetOffice.MSDATASRCApi.Behind | |
8 | +{ | |
9 | + /// <summary> | |
10 | + /// Interface DataSource | |
11 | + /// SupportByVersion MSDATASRC, 4 | |
12 | + /// </summary> | |
13 | + [SupportByVersion("MSDATASRC", 4)] | |
14 | + [EntityType(EntityType.IsInterface)] | |
15 | + public class DataSource : COMObject, NetOffice.MSDATASRCApi.DataSource | |
16 | + { | |
17 | + #pragma warning disable | |
18 | + | |
19 | + #region Type Information | |
20 | + | |
21 | + /// <summary> | |
22 | + /// Instance Type | |
23 | + /// </summary> | |
24 | + [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] | |
25 | + public override Type InstanceType | |
26 | + { | |
27 | + get | |
28 | + { | |
29 | + return LateBindingApiWrapperType; | |
30 | + } | |
31 | + } | |
32 | + | |
33 | + private static Type _type; | |
34 | + | |
35 | + [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
36 | + public static Type LateBindingApiWrapperType | |
37 | + { | |
38 | + get | |
39 | + { | |
40 | + if (null == _type) | |
41 | + _type = typeof(DataSource); | |
42 | + return _type; | |
43 | + } | |
44 | + } | |
45 | + | |
46 | + #endregion | |
47 | + | |
48 | + #region Ctor | |
49 | + | |
50 | + /// <summary> | |
51 | + /// Stub Ctor, not intended to use | |
52 | + /// </summary> | |
53 | + public DataSource() : base() | |
54 | + { | |
55 | + } | |
56 | + | |
57 | + #endregion | |
58 | + | |
59 | + #region Methods | |
60 | + | |
61 | + /// <summary> | |
62 | + /// SupportByVersion MSDATASRC 4 | |
63 | + /// </summary> | |
64 | + /// <param name="bstrDM">string bstrDM</param> | |
65 | + /// <param name="riid">Guid riid</param> | |
66 | + [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
67 | + [SupportByVersion("MSDATASRC", 4)] | |
68 | + public virtual object getDataMember(string bstrDM, Guid riid) | |
69 | + { | |
70 | + return InvokerService.InvokeInternal.ExecuteVariantMethodGet(this, "getDataMember", bstrDM, riid); | |
71 | + } | |
72 | + | |
73 | + /// <summary> | |
74 | + /// SupportByVersion MSDATASRC 4 | |
75 | + /// </summary> | |
76 | + /// <param name="lIndex">Int32 lIndex</param> | |
77 | + [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
78 | + [SupportByVersion("MSDATASRC", 4)] | |
79 | + public virtual string getDataMemberName(Int32 lIndex) | |
80 | + { | |
81 | + return InvokerService.InvokeInternal.ExecuteStringMethodGet(this, "getDataMemberName", lIndex); | |
82 | + } | |
83 | + | |
84 | + /// <summary> | |
85 | + /// SupportByVersion MSDATASRC 4 | |
86 | + /// </summary> | |
87 | + [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
88 | + [SupportByVersion("MSDATASRC", 4)] | |
89 | + public virtual Int32 getDataMemberCount() | |
90 | + { | |
91 | + return InvokerService.InvokeInternal.ExecuteInt32MethodGet(this, "getDataMemberCount"); | |
92 | + } | |
93 | + | |
94 | + /// <summary> | |
95 | + /// SupportByVersion MSDATASRC 4 | |
96 | + /// </summary> | |
97 | + /// <param name="pDSL">NetOffice.MSDATASRCApi.DataSourceListener pDSL</param> | |
98 | + [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
99 | + [SupportByVersion("MSDATASRC", 4)] | |
100 | + public virtual Int32 addDataSourceListener(NetOffice.MSDATASRCApi.DataSourceListener pDSL) | |
101 | + { | |
102 | + return InvokerService.InvokeInternal.ExecuteInt32MethodGet(this, "addDataSourceListener", pDSL); | |
103 | + } | |
104 | + | |
105 | + /// <summary> | |
106 | + /// SupportByVersion MSDATASRC 4 | |
107 | + /// </summary> | |
108 | + /// <param name="pDSL">NetOffice.MSDATASRCApi.DataSourceListener pDSL</param> | |
109 | + [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
110 | + [SupportByVersion("MSDATASRC", 4)] | |
111 | + public virtual Int32 removeDataSourceListener(NetOffice.MSDATASRCApi.DataSourceListener pDSL) | |
112 | + { | |
113 | + return InvokerService.InvokeInternal.ExecuteInt32MethodGet(this, "removeDataSourceListener", pDSL); | |
114 | + } | |
115 | + | |
116 | + #endregion | |
117 | + | |
118 | + #pragma warning restore | |
119 | + } | |
120 | +} |
@@ -0,0 +1,98 @@ | ||
1 | +using System; | |
2 | +using NetRuntimeSystem = System; | |
3 | +using System.ComponentModel; | |
4 | +using NetOffice.Attributes; | |
5 | +using NetOffice.MSDATASRCApi; | |
6 | + | |
7 | +namespace NetOffice.MSDATASRCApi.Behind | |
8 | +{ | |
9 | + /// <summary> | |
10 | + /// Interface DataSourceListener | |
11 | + /// SupportByVersion MSDATASRC, 4 | |
12 | + /// </summary> | |
13 | + [SupportByVersion("MSDATASRC", 4)] | |
14 | + [EntityType(EntityType.IsInterface)] | |
15 | + public class DataSourceListener : COMObject, NetOffice.MSDATASRCApi.DataSourceListener | |
16 | + { | |
17 | + #pragma warning disable | |
18 | + | |
19 | + #region Type Information | |
20 | + | |
21 | + /// <summary> | |
22 | + /// Instance Type | |
23 | + /// </summary> | |
24 | + [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] | |
25 | + public override Type InstanceType | |
26 | + { | |
27 | + get | |
28 | + { | |
29 | + return LateBindingApiWrapperType; | |
30 | + } | |
31 | + } | |
32 | + | |
33 | + private static Type _type; | |
34 | + | |
35 | + [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
36 | + public static Type LateBindingApiWrapperType | |
37 | + { | |
38 | + get | |
39 | + { | |
40 | + if (null == _type) | |
41 | + _type = typeof(DataSourceListener); | |
42 | + return _type; | |
43 | + } | |
44 | + } | |
45 | + | |
46 | + #endregion | |
47 | + | |
48 | + #region Ctor | |
49 | + | |
50 | + /// <summary> | |
51 | + /// Stub Ctor, not intended to use | |
52 | + /// </summary> | |
53 | + public DataSourceListener() : base() | |
54 | + { | |
55 | + } | |
56 | + | |
57 | + #endregion | |
58 | + | |
59 | + #region Methods | |
60 | + | |
61 | + /// <summary> | |
62 | + /// SupportByVersion MSDATASRC 4 | |
63 | + /// </summary> | |
64 | + /// <param name="bstrDM">string bstrDM</param> | |
65 | + [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
66 | + [SupportByVersion("MSDATASRC", 4)] | |
67 | + public virtual Int32 dataMemberChanged(string bstrDM) | |
68 | + { | |
69 | + return InvokerService.InvokeInternal.ExecuteInt32MethodGet(this, "dataMemberChanged", bstrDM); | |
70 | + } | |
71 | + | |
72 | + /// <summary> | |
73 | + /// SupportByVersion MSDATASRC 4 | |
74 | + /// </summary> | |
75 | + /// <param name="bstrDM">string bstrDM</param> | |
76 | + [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
77 | + [SupportByVersion("MSDATASRC", 4)] | |
78 | + public virtual Int32 dataMemberAdded(string bstrDM) | |
79 | + { | |
80 | + return InvokerService.InvokeInternal.ExecuteInt32MethodGet(this, "dataMemberAdded", bstrDM); | |
81 | + } | |
82 | + | |
83 | + /// <summary> | |
84 | + /// SupportByVersion MSDATASRC 4 | |
85 | + /// </summary> | |
86 | + /// <param name="bstrDM">string bstrDM</param> | |
87 | + [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
88 | + [SupportByVersion("MSDATASRC", 4)] | |
89 | + public virtual Int32 dataMemberRemoved(string bstrDM) | |
90 | + { | |
91 | + return InvokerService.InvokeInternal.ExecuteInt32MethodGet(this, "dataMemberRemoved", bstrDM); | |
92 | + } | |
93 | + | |
94 | + #endregion | |
95 | + | |
96 | + #pragma warning restore | |
97 | + } | |
98 | +} |
@@ -11,104 +11,9 @@ | ||
11 | 11 | /// </summary> |
12 | 12 | [SupportByVersion("MSDATASRC", 4)] |
13 | 13 | [EntityType(EntityType.IsInterface)] |
14 | - public class DataSource : COMObject | |
14 | + [TypeId("7C0FFAB3-CD84-11D0-949A-00A0C91110ED")] | |
15 | + public interface DataSource : ICOMObject | |
15 | 16 | { |
16 | - #pragma warning disable | |
17 | - | |
18 | - #region Type Information | |
19 | - | |
20 | - /// <summary> | |
21 | - /// Instance Type | |
22 | - /// </summary> | |
23 | - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] | |
24 | - public override Type InstanceType | |
25 | - { | |
26 | - get | |
27 | - { | |
28 | - return LateBindingApiWrapperType; | |
29 | - } | |
30 | - } | |
31 | - | |
32 | - private static Type _type; | |
33 | - | |
34 | - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
35 | - public static Type LateBindingApiWrapperType | |
36 | - { | |
37 | - get | |
38 | - { | |
39 | - if (null == _type) | |
40 | - _type = typeof(DataSource); | |
41 | - return _type; | |
42 | - } | |
43 | - } | |
44 | - | |
45 | - #endregion | |
46 | - | |
47 | - #region Ctor | |
48 | - | |
49 | - /// <param name="factory">current used factory core</param> | |
50 | - /// <param name="parentObject">object there has created the proxy</param> | |
51 | - /// <param name="proxyShare">proxy share instead if com proxy</param> | |
52 | - public DataSource(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) | |
53 | - { | |
54 | - } | |
55 | - | |
56 | - ///<param name="factory">current used factory core</param> | |
57 | - ///<param name="parentObject">object there has created the proxy</param> | |
58 | - ///<param name="comProxy">inner wrapped COM proxy</param> | |
59 | - public DataSource(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) | |
60 | - { | |
61 | - | |
62 | - } | |
63 | - | |
64 | - ///<param name="parentObject">object there has created the proxy</param> | |
65 | - ///<param name="comProxy">inner wrapped COM proxy</param> | |
66 | - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
67 | - public DataSource(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) | |
68 | - { | |
69 | - } | |
70 | - | |
71 | - ///<param name="factory">current used factory core</param> | |
72 | - ///<param name="parentObject">object there has created the proxy</param> | |
73 | - ///<param name="comProxy">inner wrapped COM proxy</param> | |
74 | - ///<param name="comProxyType">Type of inner wrapped COM proxy"</param> | |
75 | - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
76 | - public DataSource(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) | |
77 | - { | |
78 | - | |
79 | - } | |
80 | - | |
81 | - ///<param name="parentObject">object there has created the proxy</param> | |
82 | - ///<param name="comProxy">inner wrapped COM proxy</param> | |
83 | - ///<param name="comProxyType">Type of inner wrapped COM proxy"</param> | |
84 | - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
85 | - public DataSource(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) | |
86 | - { | |
87 | - } | |
88 | - | |
89 | - ///<param name="replacedObject">object to replaced. replacedObject are not usable after this action</param> | |
90 | - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
91 | - public DataSource(ICOMObject replacedObject) : base(replacedObject) | |
92 | - { | |
93 | - } | |
94 | - | |
95 | - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
96 | - public DataSource() : base() | |
97 | - { | |
98 | - } | |
99 | - | |
100 | - /// <param name="progId">registered progID</param> | |
101 | - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
102 | - public DataSource(string progId) : base(progId) | |
103 | - { | |
104 | - } | |
105 | - | |
106 | - #endregion | |
107 | - | |
108 | - #region Properties | |
109 | - | |
110 | - #endregion | |
111 | - | |
112 | 17 | #region Methods |
113 | 18 | |
114 | 19 | /// <summary> |
@@ -118,10 +23,7 @@ | ||
118 | 23 | /// <param name="riid">Guid riid</param> |
119 | 24 | [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] |
120 | 25 | [SupportByVersion("MSDATASRC", 4)] |
121 | - public object getDataMember(string bstrDM, Guid riid) | |
122 | - { | |
123 | - return Factory.ExecuteVariantMethodGet(this, "getDataMember", bstrDM, riid); | |
124 | - } | |
26 | + object getDataMember(string bstrDM, Guid riid); | |
125 | 27 | |
126 | 28 | /// <summary> |
127 | 29 | /// SupportByVersion MSDATASRC 4 |
@@ -129,10 +31,7 @@ | ||
129 | 31 | /// <param name="lIndex">Int32 lIndex</param> |
130 | 32 | [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] |
131 | 33 | [SupportByVersion("MSDATASRC", 4)] |
132 | - public string getDataMemberName(Int32 lIndex) | |
133 | - { | |
134 | - return Factory.ExecuteStringMethodGet(this, "getDataMemberName", lIndex); | |
135 | - } | |
34 | + string getDataMemberName(Int32 lIndex); | |
136 | 35 | |
137 | 36 | /// <summary> |
138 | 37 | /// SupportByVersion MSDATASRC 4 |
@@ -139,10 +38,7 @@ | ||
139 | 38 | /// </summary> |
140 | 39 | [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] |
141 | 40 | [SupportByVersion("MSDATASRC", 4)] |
142 | - public Int32 getDataMemberCount() | |
143 | - { | |
144 | - return Factory.ExecuteInt32MethodGet(this, "getDataMemberCount"); | |
145 | - } | |
41 | + Int32 getDataMemberCount(); | |
146 | 42 | |
147 | 43 | /// <summary> |
148 | 44 | /// SupportByVersion MSDATASRC 4 |
@@ -150,10 +46,7 @@ | ||
150 | 46 | /// <param name="pDSL">NetOffice.MSDATASRCApi.DataSourceListener pDSL</param> |
151 | 47 | [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] |
152 | 48 | [SupportByVersion("MSDATASRC", 4)] |
153 | - public Int32 addDataSourceListener(NetOffice.MSDATASRCApi.DataSourceListener pDSL) | |
154 | - { | |
155 | - return Factory.ExecuteInt32MethodGet(this, "addDataSourceListener", pDSL); | |
156 | - } | |
49 | + Int32 addDataSourceListener(NetOffice.MSDATASRCApi.DataSourceListener pDSL); | |
157 | 50 | |
158 | 51 | /// <summary> |
159 | 52 | /// SupportByVersion MSDATASRC 4 |
@@ -161,13 +54,8 @@ | ||
161 | 54 | /// <param name="pDSL">NetOffice.MSDATASRCApi.DataSourceListener pDSL</param> |
162 | 55 | [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] |
163 | 56 | [SupportByVersion("MSDATASRC", 4)] |
164 | - public Int32 removeDataSourceListener(NetOffice.MSDATASRCApi.DataSourceListener pDSL) | |
165 | - { | |
166 | - return Factory.ExecuteInt32MethodGet(this, "removeDataSourceListener", pDSL); | |
167 | - } | |
57 | + Int32 removeDataSourceListener(NetOffice.MSDATASRCApi.DataSourceListener pDSL); | |
168 | 58 | |
169 | 59 | #endregion |
170 | - | |
171 | - #pragma warning restore | |
172 | 60 | } |
173 | 61 | } |
@@ -11,104 +11,9 @@ | ||
11 | 11 | /// </summary> |
12 | 12 | [SupportByVersion("MSDATASRC", 4)] |
13 | 13 | [EntityType(EntityType.IsInterface)] |
14 | - public class DataSourceListener : COMObject | |
14 | + [TypeId("7C0FFAB2-CD84-11D0-949A-00A0C91110ED")] | |
15 | + public interface DataSourceListener : ICOMObject | |
15 | 16 | { |
16 | - #pragma warning disable | |
17 | - | |
18 | - #region Type Information | |
19 | - | |
20 | - /// <summary> | |
21 | - /// Instance Type | |
22 | - /// </summary> | |
23 | - [EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden] | |
24 | - public override Type InstanceType | |
25 | - { | |
26 | - get | |
27 | - { | |
28 | - return LateBindingApiWrapperType; | |
29 | - } | |
30 | - } | |
31 | - | |
32 | - private static Type _type; | |
33 | - | |
34 | - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
35 | - public static Type LateBindingApiWrapperType | |
36 | - { | |
37 | - get | |
38 | - { | |
39 | - if (null == _type) | |
40 | - _type = typeof(DataSourceListener); | |
41 | - return _type; | |
42 | - } | |
43 | - } | |
44 | - | |
45 | - #endregion | |
46 | - | |
47 | - #region Ctor | |
48 | - | |
49 | - /// <param name="factory">current used factory core</param> | |
50 | - /// <param name="parentObject">object there has created the proxy</param> | |
51 | - /// <param name="proxyShare">proxy share instead if com proxy</param> | |
52 | - public DataSourceListener(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare) | |
53 | - { | |
54 | - } | |
55 | - | |
56 | - ///<param name="factory">current used factory core</param> | |
57 | - ///<param name="parentObject">object there has created the proxy</param> | |
58 | - ///<param name="comProxy">inner wrapped COM proxy</param> | |
59 | - public DataSourceListener(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) | |
60 | - { | |
61 | - | |
62 | - } | |
63 | - | |
64 | - ///<param name="parentObject">object there has created the proxy</param> | |
65 | - ///<param name="comProxy">inner wrapped COM proxy</param> | |
66 | - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
67 | - public DataSourceListener(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy) | |
68 | - { | |
69 | - } | |
70 | - | |
71 | - ///<param name="factory">current used factory core</param> | |
72 | - ///<param name="parentObject">object there has created the proxy</param> | |
73 | - ///<param name="comProxy">inner wrapped COM proxy</param> | |
74 | - ///<param name="comProxyType">Type of inner wrapped COM proxy"</param> | |
75 | - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
76 | - public DataSourceListener(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) | |
77 | - { | |
78 | - | |
79 | - } | |
80 | - | |
81 | - ///<param name="parentObject">object there has created the proxy</param> | |
82 | - ///<param name="comProxy">inner wrapped COM proxy</param> | |
83 | - ///<param name="comProxyType">Type of inner wrapped COM proxy"</param> | |
84 | - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
85 | - public DataSourceListener(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) | |
86 | - { | |
87 | - } | |
88 | - | |
89 | - ///<param name="replacedObject">object to replaced. replacedObject are not usable after this action</param> | |
90 | - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
91 | - public DataSourceListener(ICOMObject replacedObject) : base(replacedObject) | |
92 | - { | |
93 | - } | |
94 | - | |
95 | - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
96 | - public DataSourceListener() : base() | |
97 | - { | |
98 | - } | |
99 | - | |
100 | - /// <param name="progId">registered progID</param> | |
101 | - [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] | |
102 | - public DataSourceListener(string progId) : base(progId) | |
103 | - { | |
104 | - } | |
105 | - | |
106 | - #endregion | |
107 | - | |
108 | - #region Properties | |
109 | - | |
110 | - #endregion | |
111 | - | |
112 | 17 | #region Methods |
113 | 18 | |
114 | 19 | /// <summary> |
@@ -117,10 +22,7 @@ | ||
117 | 22 | /// <param name="bstrDM">string bstrDM</param> |
118 | 23 | [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] |
119 | 24 | [SupportByVersion("MSDATASRC", 4)] |
120 | - public Int32 dataMemberChanged(string bstrDM) | |
121 | - { | |
122 | - return Factory.ExecuteInt32MethodGet(this, "dataMemberChanged", bstrDM); | |
123 | - } | |
25 | + Int32 dataMemberChanged(string bstrDM); | |
124 | 26 | |
125 | 27 | /// <summary> |
126 | 28 | /// SupportByVersion MSDATASRC 4 |
@@ -128,10 +30,7 @@ | ||
128 | 30 | /// <param name="bstrDM">string bstrDM</param> |
129 | 31 | [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] |
130 | 32 | [SupportByVersion("MSDATASRC", 4)] |
131 | - public Int32 dataMemberAdded(string bstrDM) | |
132 | - { | |
133 | - return Factory.ExecuteInt32MethodGet(this, "dataMemberAdded", bstrDM); | |
134 | - } | |
33 | + Int32 dataMemberAdded(string bstrDM); | |
135 | 34 | |
136 | 35 | /// <summary> |
137 | 36 | /// SupportByVersion MSDATASRC 4 |
@@ -139,13 +38,8 @@ | ||
139 | 38 | /// <param name="bstrDM">string bstrDM</param> |
140 | 39 | [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] |
141 | 40 | [SupportByVersion("MSDATASRC", 4)] |
142 | - public Int32 dataMemberRemoved(string bstrDM) | |
143 | - { | |
144 | - return Factory.ExecuteInt32MethodGet(this, "dataMemberRemoved", bstrDM); | |
145 | - } | |
41 | + Int32 dataMemberRemoved(string bstrDM); | |
146 | 42 | |
147 | 43 | #endregion |
148 | - | |
149 | - #pragma warning restore | |
150 | 44 | } |
151 | 45 | } |
@@ -0,0 +1,48 @@ | ||
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | + | |
4 | +namespace NetOffice.MSDATASRCApi.Tools.Expose | |
5 | +{ | |
6 | + /// <summary> | |
7 | + /// MSDATASRC Default Type Factory | |
8 | + /// </summary> | |
9 | + public class TypeFactory : NetOffice.Tools.Expose.Factory | |
10 | + { | |
11 | + private string _factoryNamespace = "NetOffice.MSDATASRCApi"; | |
12 | + private Guid _componentId = new Guid("7C0FFAB0-CD84-11D0-949A-00A0C91110ED"); | |
13 | + private string[] _dependencies = new string[0]; | |
14 | + | |
15 | + /// <summary> | |
16 | + /// Default namespace of the factory | |
17 | + /// </summary> | |
18 | + public override string FactoryNamespace | |
19 | + { | |
20 | + get | |
21 | + { | |
22 | + return _factoryNamespace; | |
23 | + } | |
24 | + } | |
25 | + | |
26 | + /// <summary> | |
27 | + /// Guid of the COM component which represents the NetOfficeApi assembly | |
28 | + /// </summary> | |
29 | + public override Guid ComponentID | |
30 | + { | |
31 | + get | |
32 | + { | |
33 | + return _componentId; | |
34 | + } | |
35 | + } | |
36 | + | |
37 | + /// <summary> | |
38 | + /// Returns a name array of dependent NetOfficeApi assemblies | |
39 | + /// </summary> | |
40 | + public override string[] Dependencies | |
41 | + { | |
42 | + get | |
43 | + { | |
44 | + return _dependencies; | |
45 | + } | |
46 | + } | |
47 | + } | |
48 | +} |