--- myst: substitutions: method: |- ```{image} /img/code_reference/net_library/method.ico ``` prop: |- ```{image} /img/code_reference/net_library/prop.ico ``` --- # IErpService Interface Provides the interface for working with an ERP Service. **Namespace:** powerGate.Erp.Client\ **Assembly:** powerGate.Erp.Client.dll ## Syntax ```{code-block} CSharp :linenos: public interface IErpService : IDisposable ``` ## Properties | Type | Name | Description | |------------------------------|-------------|---------------------------------------------| | {{prop}} [IErpEntitySets][] | EntitySets | Gets the EntitySets of the service. | | {{prop}} [IErpEntityTypes][] | EntityTypes | Gets all the EntityTypes of the service. | | {{prop}} bool | IsAvailable | Indicates whether the service is available. | | {{prop}} string | Name | The name of the service. | | {{prop}} [Uri][] | Url | The Url of the service. | ## Methods | Type | Name | Description | |-----------------|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | {{method}} void | Dispose() | Disconnects the service from the ErpClient. Also Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.(Inherited from [IDisposable][].) | [IErpEntitySets]: ierpentitysets [IErpEntityTypes]: ierpentitytypes [Uri]: https://msdn.microsoft.com/en-us/library/system.uri(v=vs.110).aspx [IDisposable]: https://msdn.microsoft.com/en-us/library/system.idisposable(v=vs.110).aspx ## Remarks When calling **Dispose()** the service is disconnected from the [ErpClient]().\ If the service is a CatalogService, the CatalogService and all its known services get disconnected. ## See also **Reference** - [powerGate.Erp.Client namespace]() - [Get-ERPServices cmdlet]()