SnmpCommunity.GetProfile(String, ManagementPack) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get RunAs profile by name
protected:
Microsoft::EnterpriseManagement::Configuration::ManagementPackSecureReference ^ GetProfile(System::String ^ profileName, Microsoft::EnterpriseManagement::Configuration::ManagementPack ^ targetMP);
protected Microsoft.EnterpriseManagement.Configuration.ManagementPackSecureReference GetProfile (string profileName, Microsoft.EnterpriseManagement.Configuration.ManagementPack targetMP);
member this.GetProfile : string * Microsoft.EnterpriseManagement.Configuration.ManagementPack -> Microsoft.EnterpriseManagement.Configuration.ManagementPackSecureReference
Protected Function GetProfile (profileName As String, targetMP As ManagementPack) As ManagementPackSecureReference
Parameters
- profileName
- String
the profile name
- targetMP
- ManagementPack
target mp
Returns
the profile or null