本文整理汇总了C#中ErrCode类的典型用法代码示例。如果您正苦于以下问题:C# ErrCode类的具体用法?C# ErrCode怎么用?C# ErrCode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ErrCode类属于命名空间,在下文中一共展示了ErrCode类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadMediaForConnectId
public List<MediaDetails> LoadMediaForConnectId(int connection_id, out ErrCode err)
{
err = new ErrCode();
List<MediaDetails> mediaList = SiteProvider.CurrentProvider.LoadMediaForConnectId(connection_id, out err);
return mediaList;
}
示例2: EnumProviders
private static ProviderInfo[] EnumProviders(out uint [] provTypes)
{
ArrayList alProv = new ArrayList();
ArrayList alProvType = new ArrayList();
uint dwIndex = 0;
uint dwReserved = 0;
uint dwFlags = 0;
uint dwProvType = 0;
uint cbProvName = 0;
StringBuilder sProv = new StringBuilder();
while ( true )
{
bool retVal = Crypto.CryptEnumProviders(dwIndex, ref dwReserved, dwFlags, ref dwProvType, sProv, ref cbProvName);
ErrCode [] eca = new ErrCode[]{ErrCode.NO_MORE_ITEMS, ErrCode.MORE_DATA};
ErrCode ec = Error.HandleRetVal(retVal, eca);
if ( !retVal )
{
if ( ec == ErrCode.NO_MORE_ITEMS )
break;
if ( ec != ErrCode.MORE_DATA )
break;
}
sProv = new System.Text.StringBuilder((int)cbProvName);
retVal = Crypto.CryptEnumProviders(dwIndex, ref dwReserved, dwFlags, ref dwProvType, sProv, ref cbProvName);
ec = Error.HandleRetVal(retVal);
dwIndex = dwIndex + 1;
cbProvName = 0;
ProviderInfo pi = new ProviderInfo();
pi.name = sProv.ToString().TrimEnd(new char['\0']);
pi.type = (ProvType) dwProvType;
alProv.Add(pi);
if(alProvType.Contains(dwProvType) == false)
alProvType.Add(dwProvType);
}
provTypes = new uint[alProvType.Count];
alProvType.CopyTo(0, provTypes, 0, provTypes.Length);
ProviderInfo [] pia = new ProviderInfo[alProv.Count];
alProv.CopyTo(0, pia, 0, pia.Length);
return pia;
}
示例3: HandleRetVal
public static ErrCode HandleRetVal(bool retVal, ErrCode expected)
{
ErrCode [] eca = new ErrCode[1];
eca[0] = expected;
return HandleRetVal(retVal, eca);
}
示例4: SaveAllFrequencies
public List<int> SaveAllFrequencies(FrequencyDetails[] frequencies, out ErrCode err)
{
List<int> ids = SiteProvider.CurrentProvider.SaveAllFrequencies(frequencies, out err);
return ids;
}
示例5: SaveChannel
public ErrCode SaveChannel(DAL.Channel channel, out int id)
{
id = 0;
ErrCode err = new ErrCode();
SiteProvider.CurrentProvider.SaveChannel(channel, out id);
return err;
}
示例6: LoadTimeBase
public List<TimeMarkDetails> LoadTimeBase(int idMark, out ErrCode err)
{
err = null;
List<TimeMarkDetails> tmdl = SiteProvider.CurrentProvider.LoadTimeBase(idMark, out err);
return tmdl;
}
示例7: LoadVariants
public List<VariantDetails> LoadVariants(out ErrCode err)
{
err = null;
List<VariantDetails> variants = SiteProvider.CurrentProvider.LoadVariants(out err);
return variants;
}
示例8: LoadPorts
public ElementPorts LoadPorts(int element_id, out ErrCode err)
{
err = new ErrCode();
ElementPorts eps = SiteProvider.CurrentProvider.LoadPorts(element_id, out err);
return eps;
}
示例9: LoadPriorities
public List<PriorityDetails> LoadPriorities(out ErrCode err)
{
err = null;
List<PriorityDetails> pds = SiteProvider.CurrentProvider.LoadAllPriorities(out err);
return pds;
}
示例10: LoadPlaneElements
public List<PEDetails> LoadPlaneElements(int variant_id, out ErrCode err)
{
err = null;
List<PEDetails> pes = SiteProvider.CurrentProvider.LoadPEs(variant_id, out err);
return pes;
}
示例11: LoadPlanes
public List<PlaneDetails> LoadPlanes(out ErrCode err)
{
err = null;
List<PlaneDetails> planes = SiteProvider.CurrentProvider.LoadPlanes(out err);
return planes;
}
示例12: LoadNAnnientedPlanes
public List<PlaneDetails> LoadNAnnientedPlanes(out ErrCode err)
{
err = null;
List<PlaneDetails> pds = SiteProvider.CurrentProvider.LoadNAnnientedAndNExecutedPlanes(out err);
return pds;
}
示例13: LoadModes
public List<ModeDetails> LoadModes(out ErrCode err)
{
err = null;
List<ModeDetails> mds = SiteProvider.CurrentProvider.LoadModes(out err);
return mds;
}
示例14: LoadMediumStyles
public List<MediumStyle> LoadMediumStyles(out ErrCode err)
{
List<MediumStyle> styles = SiteProvider.CurrentProvider.LoadMediumStyles(out err);
return styles;
}
示例15: LoadTemporalAxis
public List<TemporalAxisDetails> LoadTemporalAxis(int idVariant, out ErrCode err)
{
err = null;
List<TemporalAxisDetails> tadl = SiteProvider.CurrentProvider.LoadTemporalAxis(idVariant, out err);
return tadl;
}