Class StdBSRegistry
Serviços de manipulação do Windows Registry.
Inheritance
Implements
Inherited Members
Namespace: StdPlatBS100
Assembly: StdPlatBS100.dll
Syntax
[ComVisible(true)]
[Guid("C2716569-F786-4E0B-B981-2A6D689E6181")]
[ClassInterface(ClassInterfaceType.None)]
public class StdBSRegistry : IStdBSRegistry
Methods
DaValorLong(StdBETipos.EnumClassesRegistry, String, String, Int32)
Devolve um valor do tipo long armazenado no Registry.
Declaration
public int DaValorLong(StdBETipos.EnumClassesRegistry enuClasse, string strChave, string strNomeValor, int lngValDefeito)
Parameters
Type | Name | Description |
---|---|---|
StdBETipos.EnumClassesRegistry | enuClasse | Classe do Registry. |
System.String | strChave | Nome extenso da chave. |
System.String | strNomeValor | Nome do valor. |
System.Int32 | lngValDefeito | Valor por defeito (caso o valor não exista). |
Returns
Type | Description |
---|---|
System.Int32 |
DaValorString(StdBETipos.EnumClassesRegistry, String, String, String)
Devolve um valor do tipo string armazenado no Registry.
Declaration
public string DaValorString(StdBETipos.EnumClassesRegistry enuClasse, string strChave, string strNomeValor, string strValDefeito)
Parameters
Type | Name | Description |
---|---|---|
StdBETipos.EnumClassesRegistry | enuClasse | Classe do Registry. |
System.String | strChave | Nome extenso da chave. |
System.String | strNomeValor | Nome do valor. |
System.String | strValDefeito | Valor por defeito (caso o valor não exista). |
Returns
Type | Description |
---|---|
System.String |
EnumeraChaves(StdBETipos.EnumClassesRegistry, String)
Enumera as sub chaves contidas numa chave do registro.
Declaration
public string[] EnumeraChaves(StdBETipos.EnumClassesRegistry enuCalsse, string strChave)
Parameters
Type | Name | Description |
---|---|---|
StdBETipos.EnumClassesRegistry | enuCalsse | Identificador da Classe do Registo. |
System.String | strChave | Identificador da Chave. |
Returns
Type | Description |
---|---|
System.String[] |
EnumeraValores(StdBETipos.EnumClassesRegistry, String)
Enumera os valores contidos numa chave do registro.
Declaration
public string[] EnumeraValores(StdBETipos.EnumClassesRegistry enuCalsse, string strChave)
Parameters
Type | Name | Description |
---|---|---|
StdBETipos.EnumClassesRegistry | enuCalsse | Identificador da Classe do Registo. |
System.String | strChave | Identificador da Chave. |
Returns
Type | Description |
---|---|
System.String[] |
Finalize()
Declaration
protected void Finalize()
GravaValorLong(StdBETipos.EnumClassesRegistry, String, String, Int32)
Grava um valor do tipo long no Registry.
Declaration
public void GravaValorLong(StdBETipos.EnumClassesRegistry enuClasse, string strChave, string strNomeValor, int lngValor)
Parameters
Type | Name | Description |
---|---|---|
StdBETipos.EnumClassesRegistry | enuClasse | Classe do Registry. |
System.String | strChave | Nome extenso da chave. |
System.String | strNomeValor | Nome do valor. |
System.Int32 | lngValor | Valor a gravar. |
GravaValorString(StdBETipos.EnumClassesRegistry, String, String, String)
Grava um valor do tipo string no Registry.
Declaration
public void GravaValorString(StdBETipos.EnumClassesRegistry enuClasse, string strChave, string strNomeValor, string strValor)
Parameters
Type | Name | Description |
---|---|---|
StdBETipos.EnumClassesRegistry | enuClasse | Classe do Registry. |
System.String | strChave | Nome extenso da chave. |
System.String | strNomeValor | Nome do valor. |
System.String | strValor | Valor a gravar. |
RemoveValor(StdBETipos.EnumClassesRegistry, String, String)
Remover um valor no Registry.
Declaration
public void RemoveValor(StdBETipos.EnumClassesRegistry enuClasse, string strChave, string strNomeValor)
Parameters
Type | Name | Description |
---|---|---|
StdBETipos.EnumClassesRegistry | enuClasse | Classe do Registry. |
System.String | strChave | Nome extenso da chave. |
System.String | strNomeValor | Nome do valor. |