Get D365DotNetMethod - FH-Inway/d365fo.tools GitHub Wiki
Get a .NET method from the Dynamics 365 for Finance and Operations installation
Get-D365DotNetMethod [-Assembly] <String> [[-Name] <String>] [[-TypeName] <String>] [<CommonParameters>]
Get a .NET method from an assembly file (dll) from the package directory
Get-D365DotNetMethod -Assembly "C:\AOSService\PackagesLocalDirectory\ElectronicReporting\bin\Microsoft.Dynamics365.LocalizationFrameworkForAx.dll"
Will get all methods, across all classes, from the assembly file
Get-D365DotNetMethod -Assembly "C:\AOSService\PackagesLocalDirectory\ElectronicReporting\bin\Microsoft.Dynamics365.LocalizationFrameworkForAx.dll" -TypeName "ERTextFormatExcelFileComponent"
Will get all methods, from the "ERTextFormatExcelFileComponent" class, from the assembly file
Get-D365DotNetMethod -Assembly "C:\AOSService\PackagesLocalDirectory\ElectronicReporting\bin\Microsoft.Dynamics365.LocalizationFrameworkForAx.dll" -TypeName "ERTextFormatExcelFileComponent" -Name "*parm*"
Will get all methods that fits the search "parm", from the "ERTextFormatExcelFileComponent" class, from the assembly file
Get-D365DotNetClass -Name "ERTextFormatExcelFileComponent" -Assembly "*LocalizationFrameworkForAx.dll*" | Get-D365DotNetMethod
Will get all methods, from the "ERTextFormatExcelFileComponent" class, from any assembly file that fits the search "LocalizationFrameworkForAx.dll"
Name of the assembly file that you want to search for the .NET method
Provide the full path for the assembly file you want to work against
Type: String
Parameter Sets: (All)
Aliases: File
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Name of the .NET method that you are looking for
Accepts wildcards for searching. E.g. -Name "parmERExcel"
Default value is "*" which will search for all methods
Type: String
Parameter Sets: (All)
Aliases: MethodName
Required: False
Position: 3
Default value: *
Accept pipeline input: False
Accept wildcard characters: False
Name of the .NET class that you want to work against
Accepts wildcards for searching. E.g. -Name "ERExcel*"
Default value is "*" which will work against all classes
Type: String
Parameter Sets: (All)
Aliases: ClassName
Required: False
Position: 4
Default value: *
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Tags: .Net, DotNet, Class, Method, Methods, Development
Author: Mötz Jensen (@Splaxi)
The cmdlet supports piping and can be used in advanced scenarios. See more on github and the wiki pages.